]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Ilpo Järvinen: fix printing of TCP sequence number for data segments
authorGuy Harris <[email protected]>
Sun, 1 Mar 2009 21:57:53 +0000 (13:57 -0800)
committerGuy Harris <[email protected]>
Sun, 1 Mar 2009 21:57:53 +0000 (13:57 -0800)
so it's printed for segments containing data regardless of whether -v was
used or not.

CREDITS
print-tcp.c

diff --git a/CREDITS b/CREDITS
index 665553516fefe3dcd8f2866838a0fdfdb219f0b8..1fce7ab53772838d59702c3a331a372ed8978373 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -69,7 +69,8 @@ Additional people who have contributed patches:
        Heinz-Ado Arnolds               <Ado dot Arnolds at dhm-systems dot de>
        Hendrik Scholz                  <hendrik at scholz dot net>
        Ian McDonald                    <imcdnzl at gmail dot com>
-        Jacek Tobiasz                   <Jacek dot Tobiasz at atm dot com dot pl>
+       Ilpo Jarvinen                   <ilpo dot jarvinen at helsinki dot fi>
+       Jacek Tobiasz                   <Jacek dot Tobiasz at atm dot com dot pl>
        Jakob Schlyter                  <jakob at openbsd dot org>
        Jan Oravec                      <wsx at wsx6 dot net>
        Jason R. Thorpe                 <thorpej at netbsd dot org>
index de007c94cc7e5238ccbd5ac5d5b05071099f8bc6..8efe6c69c57a998a7dc7d17ae121aeae4f7d4990 100644 (file)
@@ -452,7 +452,7 @@ tcp_print(register const u_char *bp, register u_int length,
 #endif
 
         length -= hlen;
-        if (vflag > 1 || flags & (TH_SYN | TH_FIN | TH_RST)) {
+        if (vflag > 1 || length > 0 || flags & (TH_SYN | TH_FIN | TH_RST)) {
                 (void)printf(", seq %u", seq);
 
                 if (length > 0) {