]> The Tcpdump Group git mirrors - tcpdump/commit
Add support for decoding Broadcom Ethernet switches tags
authorFlorian Fainelli <[email protected]>
Fri, 18 Jan 2019 23:24:33 +0000 (15:24 -0800)
committerFlorian Fainelli <[email protected]>
Mon, 28 Jan 2019 18:56:18 +0000 (10:56 -0800)
commit6eaebfe99288e7a24188bf2d3771865ff702af43
tree4f719c7bf7d71e4a2d8ee89db74cdf58275e6394
parent48e290d807a535cdda391eef7e6992c3429c986a
Add support for decoding Broadcom Ethernet switches tags

This adds support for decoding the Broadcom Ethernet switches tags which
are are 4byte in length and are located between the Ethernet MAC SA and
the Type/Length field (DSA_TAG_BRCM) as well as the pre-pended Broadcom
tag (DSA_TAG_BRCM_PREPEND) which are located in front of the standard
Ethernet header.

This makes use of the recently introduced ether_print_hdr_len() to allow
specifying the non-standard Ethernet header length of 12 + 4 + 2 bytes.
CMakeLists.txt
Makefile.in
netdissect.h
print-brcmtag.c [new file with mode: 0644]
print.c