]> The Tcpdump Group git mirrors - tcpdump/commit
RIP: Modernize packet parsing style.
authorDenis Ovsienko <[email protected]>
Thu, 14 Jan 2021 03:48:28 +0000 (03:48 +0000)
committerDenis Ovsienko <[email protected]>
Thu, 14 Jan 2021 03:48:28 +0000 (03:48 +0000)
commitdb3c742cd74bddea8d135fbabb0c9f7065a1d779
tree8e2303a76b908721eaafa0933065c5d84f00d656
parent4352d308780026c49142ff80a672de68de0238de
RIP: Modernize packet parsing style.

Enable ND_LONGJMP_FROM_TCHECK. Report invalid packets as invalid. Remove
two redundant ND_TCHECK_SIZE() instances and an improvised snapshot end
guard. Check bounds for the remaining part of the packet header after
printing version and command, not before. Lose one pointer and one
length variable in rip_print(), also account for the header size when
estimating the number of routes. Update two tests.
CHANGES
print-rip.c
tests/ripv2-invalid-length.out
tests/ripv2_auth.out