git: 5d66edf463a0 - stable/12 - ether: add older ethertype definitions for QinQ

Lutz Donnerhacke donner at FreeBSD.org
Thu Feb 25 07:53:01 UTC 2021


The branch stable/12 has been updated by donner:

URL: https://cgit.FreeBSD.org/src/commit/?id=5d66edf463a053a840a08322107363cf79249f6f

commit 5d66edf463a053a840a08322107363cf79249f6f
Author:     Philip Paeps <philip at FreeBSD.org>
AuthorDate: 2019-10-17 00:34:53 +0000
Commit:     Lutz Donnerhacke <donner at FreeBSD.org>
CommitDate: 2021-02-25 07:51:39 +0000

    ether: add older ethertype definitions for QinQ
    
    Older network equipment used the ethertypes 0x9100, 0x9200, and 0x9300 for
    outer VLANs, before standardisation introduced 0x88a8.
    
    Submitted by:    Lutz Donnerhacke <lutz_donnerhacke.de>
    Differential Revision:  https://reviews.freebsd.org/D21846
    
    (cherry picked from commit 579b70db8922b1debf3bd99bb2b822d60b95575d)
---
 sys/net/ethernet.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
index 5e46f124a0f2..fdfc41b55037 100644
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -360,10 +360,13 @@ struct ether_vlan_header {
 #define	ETHERTYPE_PBB		0x88E7	/* 802.1Q Provider Backbone Bridges */
 #define	ETHERTYPE_FCOE		0x8906	/* Fibre Channel over Ethernet */
 #define	ETHERTYPE_LOOPBACK	0x9000	/* Loopback: used to test interfaces */
+#define	ETHERTYPE_8021Q9100	0x9100	/* IEEE 802.1Q stacking (proprietary) */
 #define	ETHERTYPE_LBACK		ETHERTYPE_LOOPBACK	/* DEC MOP loopback */
 #define	ETHERTYPE_XNSSM		0x9001	/* 3Com (Formerly Bridge Communications), XNS Systems Management */
 #define	ETHERTYPE_TCPSM		0x9002	/* 3Com (Formerly Bridge Communications), TCP/IP Systems Management */
 #define	ETHERTYPE_BCLOOP	0x9003	/* 3Com (Formerly Bridge Communications), loopback detection */
+#define	ETHERTYPE_8021Q9200	0x9200	/* IEEE 802.1Q stacking (proprietary) */
+#define	ETHERTYPE_8021Q9300	0x9300	/* IEEE 802.1Q stacking (proprietary) */
 #define	ETHERTYPE_DEBNI		0xAAAA	/* DECNET? Used by VAX 6220 DEBNI */
 #define	ETHERTYPE_SONIX		0xFAF5	/* Sonix Arpeggio */
 #define	ETHERTYPE_VITAL		0xFF00	/* BBN VITAL-LanBridge cache wakeups */


More information about the dev-commits-src-branches mailing list