git: ea5ebe9cde3c - stable/11 - ether: add older ethertype definitions for QinQ
Lutz Donnerhacke
donner at FreeBSD.org
Thu Feb 25 10:12:44 UTC 2021
The branch stable/11 has been updated by donner:
URL: https://cgit.FreeBSD.org/src/commit/?id=ea5ebe9cde3c4c3ef11b90a15881749125974cfa
commit ea5ebe9cde3c4c3ef11b90a15881749125974cfa
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 10:12:01 +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-all
mailing list