diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-01-23 17:38:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 17:38:18 -0800 |
commit | f4c3cf29cbb291901258c2f05aba77adab40a686 (patch) | |
tree | 0ae62ac37571aefdfde5f1adf0236509d9cc6603 /pcap-common.c | |
parent | 7af43d5db0d9e4000f64a9bdd2064d56f1fb1e92 (diff) | |
parent | 993db3800d7d39791a67bcaa671d1b87309f216e (diff) | |
download | libpcap-f4c3cf29cbb291901258c2f05aba77adab40a686.tar.gz |
Merge pull request #796 from ffainelli/dsa
Add support for DSA link-layer types
Diffstat (limited to 'pcap-common.c')
-rw-r--r-- | pcap-common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pcap-common.c b/pcap-common.c index 84c90e2b..5b45f58d 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -1141,7 +1141,13 @@ */ #define LINKTYPE_VPP_DISPATCH 280 -#define LINKTYPE_MATCHING_MAX 280 /* highest value in the "matching" range */ +/* + * Broadcom Ethernet switches (ROBO switch) 4 bytes proprietary tagging format. + */ +#define LINKTYPE_DSA_TAG_BRCM 281 +#define LINKTYPE_DSA_TAG_BRCM_PREPEND 282 + +#define LINKTYPE_MATCHING_MAX 282 /* highest value in the "matching" range */ /* * The DLT_ and LINKTYPE_ values in the "matching" range should be the |