]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
pflog: Include <limits.h> for UINT_MAX
[tcpdump] / print-tcp.c
index 84442eb2f388cca82033e536f616385987cae5b0..38f80d9b2336e05087ef5e556d769fc12a15d6be 100644 (file)
@@ -425,9 +425,11 @@ tcp_print(netdissect_options *ndo,
                 }
         }
 
-        if (flags & TH_ACK) {
+        if (flags & TH_ACK)
                 ND_PRINT(", ack %u", ack);
-        }
+        else
+                if (ndo->ndo_vflag > 1 && ack != 0)
+                        ND_PRINT(", [ack %u != 0 while ACK flag not set]", ack);
 
         ND_PRINT(", win %u", win);