]> The Tcpdump Group git mirrors - tcpdump/commit
GRE: Modernize packet parsing
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 25 Dec 2021 15:01:11 +0000 (16:01 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 26 Dec 2021 09:34:03 +0000 (10:34 +0100)
commit59973479eb4f3687aac1ca0fb23ca45604d2b2f2
treeac9dc1f09b9ac6b5ef8efbe845520b6c8a00ebbf
parentcf1b9455e796a6e498bda2e82ed04b5a9bbf42e4
GRE: Modernize packet parsing

Enable ND_LONGJMP_FROM_TCHECK.
Use ND_LCHECK_U() for length checks.
Add and use many standard "invalid" sections.
Remove the redundant ND_TCHECK*() instances.
Add a bounds check before the addrtostr() call.
Remove two now useless comments.
print-gre.c