]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up IS-IS printing.
authorGuy Harris <[email protected]>
Sat, 3 Jun 2017 03:05:12 +0000 (20:05 -0700)
committerGuy Harris <[email protected]>
Sat, 3 Jun 2017 03:05:12 +0000 (20:05 -0700)
commita26c2b2425afddcf537248887fcd2b934afd61b2
tree709b8c3841c21585c436f7b3063404fbcb2d50ef
parentda97db5c44d4e5dffd868cdca0c2235c34723690
Clean up IS-IS printing.

Check the packet length as well as the captured length.

Don't have separate "non-verbose" and "verbose" cases, so we don't
duplicate the length checks.

Print the right value for some length check errors.

Clean up the TLV parsing code - keep parsing until we completely run out
of data, but make sure, before we look at the TLV header, that we
haven't run past the end of the packet as well as that we haven't run
past the end of the captured data.

In the OSI checksum routine:

Have it take an unsigned length, so we don't have to worry about it
being negative.

Use ND_TTEST2 to check whether the checksum offset is within the
bounds of the packet.

If we don't have all the packet data to checksum, just report
"unverified", don't return a "truncated" error.
print-isoclns.c
tests/isis-seg-fault-2-v.out
tests/isis-seg-fault-3-v.out
tests/isis_infloop-v.out