]> The Tcpdump Group git mirrors - tcpdump/commit
LISP: Modernize packet parsing
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 21 Nov 2024 12:36:49 +0000 (13:36 +0100)
committerfxlb <[email protected]>
Fri, 22 Nov 2024 10:43:01 +0000 (10:43 +0000)
commit85f1d1ea3b15d7c8b39c5ddd0abd718d90fe7d54
tree75406862050568e90f3f9984547c03c9eb008cc2
parentec5170b2658af4b5f9bfa8a85ed92ce20ac3594a
LISP: Modernize packet parsing

Define ND_LONGJMP_FROM_TCHECK and remove a 'trunc' label.
Make a bounds check conditional.
Use ND_ICHECK_U() for a length test.
Fix a bounds check, not invalid, but truncated.
(The bounds check is done by hex_print_with_offset() via hex_print().)
Use ND_TTEST_LEN() instead of testing ndo->ndo_snapend.
Remove an useless variable ('packet_iterator' same as 'bp').

Remove/update some comments.
Fix some indentations.
Remove some extra blank lines.

Update the outputs of two tests accordingly.
print-lisp.c
tests/lisp_eid_notify-v.out
tests/lisp_eid_notify.out