]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add support for Realtek (Ethertype) DSA data 1082/head
authorLuiz Angelo Daros de Luca <[email protected]>
Thu, 6 Jan 2022 18:51:54 +0000 (15:51 -0300)
committerLuiz Angelo Daros de Luca <[email protected]>
Mon, 7 Mar 2022 03:43:19 +0000 (00:43 -0300)
Realtek switchtag rtl4a (4 bytes long, protocol 0xA) and rtl8_4 (8 bytes
long, protocol 0x04) are Ethertype DSA tags, inserted in the Ethernet
header similar to an 802.1Q tag. Both shares the same Ethertype 0x8899
as other Realtek proprietary protocols.

Realtek switchtag rtl8_4t is identical to rtl8_4 but positioned before
the CRC, at the end of the Ethernet frame.

pcap-linux.c

index e931f84f6a47b38ba30afb741145d14265470b33..7bfa36f9acb5697112efbca42a72e213b81a1741 100644 (file)
@@ -5048,6 +5048,9 @@ static struct dsa_proto {
        { "brcm-prepend", DLT_DSA_TAG_BRCM_PREPEND },
        { "dsa", DLT_DSA_TAG_DSA },
        { "edsa", DLT_DSA_TAG_EDSA },
+       { "rtl4a", DLT_EN10MB },
+       { "rtl8_4", DLT_EN10MB },
+       { "rtl8_4t", DLT_EN10MB },
 };
 
 static int