]> The Tcpdump Group git mirrors - tcpdump/commit
Clean up the switch-tagged header code.
authorGuy Harris <[email protected]>
Sat, 20 Apr 2019 10:17:03 +0000 (03:17 -0700)
committerGuy Harris <[email protected]>
Sat, 20 Apr 2019 10:17:03 +0000 (03:17 -0700)
commit1b30fb060a3fb06a364bb86b0c7f9b485f43b77c
tree84aaa9a1174e5a7151d1482ff972b6893c93f802
parent5d29dda004c99926d5e55039e1df28d38a01645c
Clean up the switch-tagged header code.

Use MAC_ADDR_LEN in expressions representing offsets and lengths.

Don't declare the Ethernet header structure ourselves in the Broadcom
code, just print it the same way it's printed in the Marvell code.  Make
the two routines similar in other places as well.

Use "Unknown" rather than "unregistered" when printing the Ethernet type
field in the EDSA header - the value may well be registered even if it's
not in ethertype_values, it's just not a value we happen to have in that
table.
print-brcmtag.c
print-dsa.c
tests/edsa-e.out