]> The Tcpdump Group git mirrors - tcpdump/commit
ESP: Delete a useless custom bounds check
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 9 Jan 2025 15:35:53 +0000 (16:35 +0100)
committerfxlb <[email protected]>
Fri, 10 Jan 2025 07:38:01 +0000 (07:38 +0000)
commit9aee9964aaee40750acde45f838f48eb8f95fbe3
treeafca886b7f84caee5326feee8f83614d5d6789f1
parent6cd500c8dafe5a9bbf3e56312493709e8b118726
ESP: Delete a useless custom bounds check

The two GET_BE_U_4() perform the bounds checks.

Print the protocol name, with nd_print_protocol_caps(), before any
check.

Add a test file with a truncated ESP packet.
print-esp.c
tests/TESTLIST
tests/esp_truncated.out [new file with mode: 0644]
tests/esp_truncated.pcap [new file with mode: 0644]