Commit Graph

2 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
85f1d1ea3b 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.
2024-11-22 10:43:01 +00:00
Francois-Xavier Le Bail
ec5170b265 LISP: Add three test cases (existing pcap printed without "-v")
Rename three test and three test outputs, with "-v" in the names.
2024-11-21 07:07:49 +00:00