diff options
Diffstat (limited to 'packet-udp.c')
-rw-r--r-- | packet-udp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packet-udp.c b/packet-udp.c index 8ac5c3ff24..81841e48bd 100644 --- a/packet-udp.c +++ b/packet-udp.c @@ -1,7 +1,7 @@ /* packet-udp.c * Routines for UDP packet disassembly * - * $Id: packet-udp.c,v 1.7 1998/11/17 04:29:07 gerald Exp $ + * $Id: packet-udp.c,v 1.8 1998/11/17 05:04:04 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -62,7 +62,15 @@ dissect_udp(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { if (check_col(fd, COL_INFO)) col_add_fstr(fd, COL_INFO, "Source port: %s Destination port: %s", get_udp_port(uh_sport), get_udp_port(uh_dport)); - + if (check_col(fd, COL_RES_SRC_PORT)) + col_add_str(fd, COL_RES_SRC_PORT, get_udp_port(uh_sport)); + if (check_col(fd, COL_UNRES_SRC_PORT)) + col_add_fstr(fd, COL_UNRES_SRC_PORT, "%d", uh_sport); + if (check_col(fd, COL_RES_DST_PORT)) + col_add_str(fd, COL_RES_DST_PORT, get_udp_port(uh_dport)); + if (check_col(fd, COL_UNRES_DST_PORT)) + col_add_fstr(fd, COL_UNRES_DST_PORT, "%d", uh_dport); + if (tree) { ti = add_item_to_tree(GTK_WIDGET(tree), offset, 8, "User Datagram Protocol"); |