]> The Tcpdump Group git mirrors - tcpdump/commit
Use the length field in the UDP header.
authorGuy Harris <[email protected]>
Sun, 19 Oct 2014 20:42:00 +0000 (13:42 -0700)
committerGuy Harris <[email protected]>
Sun, 19 Oct 2014 20:42:00 +0000 (13:42 -0700)
commit0a427cd722f775d0371c9e8dc8b7a905a763d2bf
tree5bc82b8c4d02d8a85e326947154794a9b639be0a
parent75f3112b589f1e0f85f189acc49b2d2bf9b155de
Use the length field in the UDP header.

If it's less than the length of the IP payload, use it as the size of
the UDP packet.  If it's greater than the length of the IP payload,
and we're not dissecting the payload, report the length as bad.
print-udp.c