Fred Reimer's patch to put the TCP segment length in the TCP packet

summary.

svn path=/trunk/; revision=1669
This commit is contained in:
Guy Harris 2000-02-28 08:17:39 +00:00
parent a297712f0a
commit 25c6518e54
3 changed files with 10 additions and 5 deletions

View File

@ -248,6 +248,10 @@ Dietmar Petras <DPetras@ELSA.de> {
Time protocol support
}
Fred Reimer <fwr@ga.prestige.net> {
TCP segment length in TCP packet summary
}
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to
give his permission to use his version of snprintf.c.

View File

@ -821,6 +821,7 @@ B<http://ethereal.zing.org>.
Craig Newell <craign@cheque.uq.edu.au>
Ed Meaney <emeaney@altiga.com>
Dietmar Petras <DPetras@ELSA.de>
Fred Reimer <fwr@ga.prestige.net>
Alain Magloire <alainm@rcsm.ece.mcgill.ca> was kind enough to give his
permission to use his version of snprintf.c.

View File

@ -1,7 +1,7 @@
/* packet-tcp.c
* Routines for TCP packet disassembly
*
* $Id: packet-tcp.c,v 1.57 2000/02/15 21:03:15 gram Exp $
* $Id: packet-tcp.c,v 1.58 2000/02/28 08:17:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@ -441,13 +441,13 @@ dissect_tcp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
/* Copy the data into info_str in case one of the option handling
routines needs to append to it. */
if (th.th_flags & TH_URG)
info_len = snprintf(info_str, COL_MAX_LEN, "%s > %s [%s] Seq=%u Ack=%u Win=%u Urg=%u",
info_len = snprintf(info_str, COL_MAX_LEN, "%s > %s [%s] Seq=%u Ack=%u Win=%u Urg=%u Len=%d",
get_tcp_port(th.th_sport), get_tcp_port(th.th_dport), flags,
th.th_seq, th.th_ack, th.th_win, th.th_urp);
th.th_seq, th.th_ack, th.th_win, th.th_urp, pi.len - offset - hlen);
else
info_len = snprintf(info_str, COL_MAX_LEN, "%s > %s [%s] Seq=%u Ack=%u Win=%u",
info_len = snprintf(info_str, COL_MAX_LEN, "%s > %s [%s] Seq=%u Ack=%u Win=%u Len=%d",
get_tcp_port(th.th_sport), get_tcp_port(th.th_dport), flags,
th.th_seq, th.th_ack, th.th_win);
th.th_seq, th.th_ack, th.th_win, pi.len - offset - hlen);
/* The info column is actually written after the options are decoded */
}