]> The Tcpdump Group git mirrors - tcpdump/commit
Add length checks, use EXTRACT_16BITS().
authorGuy Harris <[email protected]>
Mon, 19 Dec 2011 00:05:05 +0000 (16:05 -0800)
committerGuy Harris <[email protected]>
Mon, 19 Dec 2011 00:05:05 +0000 (16:05 -0800)
commit938becee0023ec7ac41a94e72ae58879d154edbc
tree3cfc6cc257a9ffb843e1c3f2b32b3ea057d84d0a
parenta52a62784f2d8ec547fcf9977208d92bbb71dddc
Add length checks, use EXTRACT_16BITS().

Use EXTRACT_16BITS() rather than a hand-rolled macro to extract
big-endian 16-bit quantities from the packet.

When processing the message, check against the body length *and* the UDP
payload length, as well as against the raw frame length.
print-babel.c