Package: tcpdump Version: 4.0.0-1
I recently upgraded my scratch system and got the new tcpdump (in sid). I was very surprised to find out almost immediately that printing tcp seqno nowadays required _two_ -v's?!? It's a upstream bug but submitting to them is made so hopelessly complex that I won't bother taking those steps... Anyway, here's the fix: [PATCH] fix printing of tcp seqno for data segments The new formatting carelessly removed this check and put it inside the block only, meaning that seqno won't be printed at all unless at least -v -v are given. Signed-off-by: Ilpo Järvinen <ilpo.jarvi...@helsinki.fi> --- print-tcp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/print-tcp.c b/print-tcp.c index 17c1775..c8c2b90 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -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) { -- 1.5.6.5