]> The Tcpdump Group git mirrors - tcpdump/commit
IPv6: Report some invalid packets as invalid, not truncated
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 25 Aug 2023 14:39:59 +0000 (16:39 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 25 Aug 2023 17:03:43 +0000 (19:03 +0200)
commita69b0d5618ea80b8531040d7eaa3e57a4997e182
treeac9850baa823d662a4657a765945d8c682b2d4f3
parent74f5a0eff7304539e48d4d2e6766e4c69923a117
IPv6: Report some invalid packets as invalid, not truncated

When the (original) length is < length of the header, output example:
  [length 39 < 40] (invalid)
(The IPv6 header must be 40 bytes in length.)

Place the 'length' test before the 'version' test.

Add a test file.
print-ip6.c
tests/TESTLIST
tests/ipv6_invalid_length.out [new file with mode: 0644]
tests/ipv6_invalid_length.pcap [new file with mode: 0644]