]> The Tcpdump Group git mirrors - libpcap/commit
Add support for DSA link-layer types 796/head
authorFlorian Fainelli <[email protected]>
Fri, 18 Jan 2019 23:26:52 +0000 (15:26 -0800)
committerFlorian Fainelli <[email protected]>
Thu, 24 Jan 2019 00:29:23 +0000 (16:29 -0800)
commit993db3800d7d39791a67bcaa671d1b87309f216e
treef9ad697b58a5bbc981f55485ae3b373e8a1df22f
parentc83e81ea443de5a1250ad5f8977e175ddae7a05c
Add support for DSA link-layer types

Linux kernel 4.20 and greater can report what type of Distributed Switch
Architecture tagging protocol is used on the DSA master/management
interface. We need to map the protocol to a specific DLT and linktype
value in the pcap file because these protocols typically cannot be
decoded simply by making use of heuristics. The sysfs attribute that is
being checked and parsed is documented in this commit:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3d7e01da06013dc580641a1da57c3b482d58157

For now, the description of the Broadcom 4 byte Ethernet switch tagging
protocol is provided and more tags can be added in the future using the
same infrastructure.
pcap-common.c
pcap-linux.c
pcap.c
pcap/dlt.h