Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176887279
D50570.1793571368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D50570.1793571368.diff
View Options
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -80,6 +80,16 @@
(((addr)[0] | (addr)[1] | (addr)[2] | \
(addr)[3] | (addr)[4] | (addr)[5]) == 0x00)
+/*
+ * 802.1q-related constants.
+ */
+#define DOT1Q_VID_NULL 0x0
+#define DOT1Q_VID_DEF_PVID 0x1
+#define DOT1Q_VID_DEF_SR_PVID 0x2
+#define DOT1Q_VID_RSVD_IMPL 0xfff
+#define DOT1Q_VID_MIN 1 /* minimum valid vlan id */
+#define DOT1Q_VID_MAX 4095 /* maximum valid vlan id */
+
/*
* This is the type of the VLAN ID inside the tag, not the tag itself.
*/
diff --git a/sys/net/if_vlan_var.h b/sys/net/if_vlan_var.h
--- a/sys/net/if_vlan_var.h
+++ b/sys/net/if_vlan_var.h
@@ -126,13 +126,6 @@
#define VLAN_PCP_MAX 7
-#define DOT1Q_VID_NULL 0x0
-#define DOT1Q_VID_DEF_PVID 0x1
-#define DOT1Q_VID_DEF_SR_PVID 0x2
-#define DOT1Q_VID_RSVD_IMPL 0xfff
-#define DOT1Q_VID_MIN 1 /* minimum valid vlan id */
-#define DOT1Q_VID_MAX 4095 /* maximum valid vlan id */
-
/*
* 802.1q full tag. Proto and vid are stored in host byte order.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 1, 10:16 PM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41296339
Default Alt Text
D50570.1793571368.diff (1 KB)
Attached To
Mode
D50570: sys/net: move DOT1Q_VID_* constants to ethernet.h
Attached
Detach File
Event Timeline