]> The Tcpdump Group git mirrors - tcpdump/commit
IPv6: Report another invalid case as invalid, not truncated
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 26 Aug 2023 19:36:09 +0000 (21:36 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 26 Aug 2023 19:36:09 +0000 (21:36 +0200)
commit7830dc93c7bd42d3e8eb175023590eb610c6c0e2
treef007e8d30f081bd1132c2864beab7ee838146797
parente570e6b04e612576f399225840a920b4d2d9b1ef
IPv6: Report another invalid case as invalid, not truncated

This is in the jumbo case.

When the payload+header length is > (original) length, output example:
  [payload+header length 65577 > length 65576] (invalid)

We treat this as a warning and so don't stop decoding (as before).

Add a test file.

Update two test outputs accordingly.
print-ip6.c
tests/TESTLIST
tests/ipv6-too-long-jumbo.out
tests/ipv6_jumbogram_invalid_length.out [new file with mode: 0644]
tests/ipv6_jumbogram_invalid_length.pcap [new file with mode: 0644]
tests/quic_32_bit_pointer_overflow.out