]> The Tcpdump Group git mirrors - tcpdump/commit
LISP: Add a length check
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 12 Jan 2025 21:05:02 +0000 (22:05 +0100)
committerfxlb <[email protected]>
Mon, 13 Jan 2025 06:19:33 +0000 (06:19 +0000)
commit05a263a5418a9e5b971509c486246eb0913c8aea
treefe629d0d81286eb6f812bbfde730f2f296b85e7a
parent9aee9964aaee40750acde45f838f48eb8f95fbe3
LISP: Add a length check

Verify we have at least the header length.

Print the protocol name with nd_print_protocol_caps() before any check.
Update the lisp_type[] structure accordingly.

Add a test file with an invalid length.
print-lisp.c
tests/TESTLIST
tests/lisp_invalid_length.out [new file with mode: 0644]
tests/lisp_invalid_length.pcap [new file with mode: 0644]