]> The Tcpdump Group git mirrors - tcpdump/commit
Further cleanups.
authorGuy Harris <[email protected]>
Wed, 12 Nov 2014 03:05:48 +0000 (19:05 -0800)
committerGuy Harris <[email protected]>
Wed, 12 Nov 2014 03:05:48 +0000 (19:05 -0800)
commite302ff0e4a6bde6915bee1c89373aa14c823dd60
treecfcb096564fc0898dced0408a407f70accf3bb88
parent3e8a443c3671baa37ae7870f08fb9b4bf386fd24
Further cleanups.

Use ND_TCHECK() rather than home-brew bounds checks.  Do simpler length
checks.

Let i be the length of the actual remaining packet data; use ND_TCHECK()
inside loops that iterate over the remaining data.

Let the printers for particular message types cast the raw data pointer
to a pointer of the appropriate type, rather than passing two pointers,
with different types, to the same data.
print-aodv.c