the-tcpdump-group / tcpdump

the TCPdump network dissector
https://www.tcpdump.org/
Other
2.7k stars 842 forks source link

frag6: Fix invalid 32-bit versus 64-bit printouts #1181

Closed fxlb closed 5 months ago

fxlb commented 5 months ago
Print "[length < 0] (invalid)" when fragment length is negative.

In this case, e.g. when IPv6 payload length is zero, the 32-bit and 64-bit printouts were different.

Example:
32-bit:
frag (0x80000074:1280|4294967288)
---
64-bit:
frag (0x80000074:1280|18446744073709551608)

Add a test file.
infrastation commented 5 months ago

Two Buildbot workers experienced issues unrelated to the changes, this is now fixed.