]> The Tcpdump Group git mirrors - tcpdump/commit
CHDLC: Modernize packet parsing
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 10 Aug 2022 13:02:33 +0000 (15:02 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 10 Aug 2022 14:32:25 +0000 (16:32 +0200)
commit835bf2c11ca8035e62ac45afeb1d7693fa1c9b85
treecd9dbf141785539f0fb66ec956e8b7fbf4570393
parentb780f21e6243e80eb95ebfb94c4fd6ea9e79a3b3
CHDLC: Modernize packet parsing

Enable ND_LONGJMP_FROM_TCHECK and remove the "trunc" labels.
Use ND_ICHECK_U() for length checks and add standard "invalid" sections.
Remove a ndo_ll_hdr_len increment in a truncation case.
Update chdlc_print() to a void function.
Remove a now useless variable.
netdissect.h
print-chdlc.c