]> The Tcpdump Group git mirrors - tcpdump/commit
STP: Modernize packet parsing style.
authorDenis Ovsienko <[email protected]>
Wed, 9 Dec 2020 23:52:22 +0000 (23:52 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 9 Dec 2020 23:54:10 +0000 (23:54 +0000)
commitc754d30dbd366699ae11ea53655bbef398b83c5c
treea4332ee30d4b00e63513cffc1f8111ed45f6ae63
parent46fb06377ede9bcc556207246187021c96393695
STP: Modernize packet parsing style.

Remove all ND_TCHECK*() instances because they are redundant. Let
nd_printzp() guard the snapshot end. Report invalid packets as invalid,
not truncated. Make functions that always return the same value void.
ND_TCHECK_BRIDGE_ID() is not used anymore, so remove it. Update a test.
print-stp.c
tests/stp-v4-length-sigsegv.out