summaryrefslogtreecommitdiff
path: root/packet-udp.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1998-11-17 05:04:04 +0000
committerGerald Combs <gerald@wireshark.org>1998-11-17 05:04:04 +0000
commite1b6a91df5823d424e0d035fb18cb1d49f4661a8 (patch)
treeb9400595363fcf5ff1a35dca3efccf7b7d92cd94 /packet-udp.c
parent6ca358948b8c5aa99a4e0db8595f601ab834e76e (diff)
downloadwireshark-e1b6a91df5823d424e0d035fb18cb1d49f4661a8.tar.gz
* Fixes for TCP and UDP port number display.
svn path=/trunk/; revision=98
Diffstat (limited to 'packet-udp.c')
-rw-r--r--packet-udp.c12
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");