diff options
-rw-r--r-- | packet-tcp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packet-tcp.c b/packet-tcp.c index a3c8b47356..c6f9b2f92f 100644 --- a/packet-tcp.c +++ b/packet-tcp.c @@ -1,7 +1,7 @@ /* packet-tcp.c * Routines for TCP packet disassembly * - * $Id: packet-tcp.c,v 1.7 1998/11/17 05:04:04 gerald Exp $ + * $Id: packet-tcp.c,v 1.8 1998/11/18 01:49:12 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -41,6 +41,7 @@ #include "ethereal.h" #include "packet.h" +#include "resolv.h" #include "follow.h" extern FILE* data_out_file; @@ -253,14 +254,14 @@ dissect_tcp(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { if (check_col(fd, COL_PROTOCOL)) col_add_str(fd, COL_PROTOCOL, "TCP"); if (check_col(fd, COL_INFO)) - col_add_fstr(fd, COL_INFO, "Source port: %d Destination port: %d", - th.th_sport, th.th_dport); + col_add_fstr(fd, COL_INFO, "Source port: %s Destination port: %s", + get_tcp_port(th.th_sport), get_tcp_port(th.th_dport)); if (check_col(fd, COL_RES_SRC_PORT)) - col_add_fstr(fd, COL_RES_SRC_PORT, "%d", th.th_sport); + col_add_str(fd, COL_RES_SRC_PORT, get_tcp_port(th.th_sport)); if (check_col(fd, COL_UNRES_SRC_PORT)) col_add_fstr(fd, COL_UNRES_SRC_PORT, "%d", th.th_sport); if (check_col(fd, COL_RES_DST_PORT)) - col_add_fstr(fd, COL_RES_DST_PORT, "%d", th.th_dport); + col_add_str(fd, COL_RES_DST_PORT, get_tcp_port(th.th_dport)); if (check_col(fd, COL_UNRES_DST_PORT)) col_add_fstr(fd, COL_UNRES_DST_PORT, "%d", th.th_dport); |