diff options
author | Vivien Didelot <vivien.didelot@gmail.com> | 2019-04-06 11:16:54 -0400 |
---|---|---|
committer | Vivien Didelot <vivien.didelot@gmail.com> | 2019-04-16 12:19:38 -0400 |
commit | 43b5720499c61039c2a8890a73fca10333428f2e (patch) | |
tree | 7be8a8bf00ceaac87fafda62b5fb90bfc6a75fc5 /print.c | |
parent | 032c684850d38c5943018388a77db375c4bc7498 (diff) | |
download | tcpdump-43b5720499c61039c2a8890a73fca10333428f2e.tar.gz |
Add support for decoding Marvell (E)DSA tags
Similarly to commit 6eaebfe adding support for the Broadcom tagging
format supported by the DSA kernel subsystem, this commit adds support
for the Marvell DSA and Ethertype DSA (EDSA) tagging formats.
Marvell DSA is a 4-byte proprietary tag placed between the ether source
address and the ether length/type. It contains data such as the switch
device and port IDs from which a frame came from, or to which port
a frame is targetting. It also contains additional FPri and IEEE bits.
EDSA is a 8-byte variant including a programmable ethertype, two null
bytes and a standard DSA tag.
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -237,6 +237,12 @@ static const struct printer printers[] = { #ifdef DLT_VSOCK { vsock_if_print, DLT_VSOCK }, #endif +#ifdef DLT_DSA_TAG_DSA + { dsa_if_print, DLT_DSA_TAG_DSA }, +#endif +#ifdef DLT_DSA_TAG_EDSA + { edsa_if_print, DLT_DSA_TAG_EDSA }, +#endif { NULL, 0 }, }; |