X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ebe4b9f1be73a0af34508009d3b1d0139e6adfda..a271c5ecb9c9ea1cbecff1569eb647cfb16dc187:/print-tcp.c diff --git a/print-tcp.c b/print-tcp.c index 84442eb2..38f80d9b 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -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);