]> The Tcpdump Group git mirrors - tcpdump/commit
MPLS: Modernize packet parsing style.
authorDenis Ovsienko <[email protected]>
Thu, 10 Dec 2020 01:02:52 +0000 (01:02 +0000)
committerDenis Ovsienko <[email protected]>
Tue, 15 Dec 2020 01:06:24 +0000 (01:06 +0000)
commitf39bfb7d9df502dbba065519e51e44ffb902c747
tree99415c68f7d5b62050d8c8284d4dc87ebdfc9d7a
parent7ec24ab352887ebe885256b8c7d43cf1df2ef4e2
MPLS: Modernize packet parsing style.

Enable ND_LONGJMP_FROM_TCHECK. Remove both ND_TCHECK*() instances
because they are redundant. Report invalid packets as invalid, not
truncated. Test whether the invalid packet is entirely in the buffer.
Replace a long switch block with a ternary assignment.
print-mpls.c