]> The Tcpdump Group git mirrors - tcpdump/commit
GeoNet: Modernize packet parsing style.
authorDenis Ovsienko <[email protected]>
Mon, 12 Oct 2020 14:26:16 +0000 (15:26 +0100)
committerDenis Ovsienko <[email protected]>
Mon, 12 Oct 2020 15:48:52 +0000 (16:48 +0100)
commit8a33890bba9422fc56c370acdec23fc6df864507
tree86ba91266fadd5de6730da3e925414ae52783f5b
parent219be8dc262a06dce6ab4d8716f4f7cc2b0b1ae7
GeoNet: Modernize packet parsing style.

Enable ND_LONGJMP_FROM_TCHECK, lose a few single-use variables, print
one field at a time when possible and remove TCHECK*() instances that
are redundant. The only value print_long_pos_vector() could return was
0, so just make it void. In geonet_print() use nd_print_invalid() and
print the reason for declaring a packet invalid. Update comments and a
test.
print-geonet.c
tests/cve-2014-8768-Geonet.out