Skip to content

Commit b2be2cd

Browse files
committed
Add support for Realtek (Ethertype) DSA data
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.
1 parent 5f634cf commit b2be2cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pcap-linux.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5048,6 +5048,9 @@ static struct dsa_proto {
50485048
{ "brcm-prepend", DLT_DSA_TAG_BRCM_PREPEND },
50495049
{ "dsa", DLT_DSA_TAG_DSA },
50505050
{ "edsa", DLT_DSA_TAG_EDSA },
5051+
{ "rtl4a", DLT_EN10MB },
5052+
{ "rtl8_4", DLT_EN10MB },
5053+
{ "rtl8_4t", DLT_EN10MB },
50515054
};
50525055

50535056
static int

0 commit comments

Comments
 (0)