aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/etherswitch/etherswitch.h
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2013-07-23 13:56:38 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2013-07-23 13:56:38 +0000
commitcc320e372e49d48055e9859a9df60c81481c0f1b (patch)
tree32395f066ef0466740d4e137c2ced3772250ba58 /sys/dev/etherswitch/etherswitch.h
parentda2a0dcb7a4b9f8ab1b1b94d02799204b8d28e81 (diff)
Notes
Diffstat (limited to 'sys/dev/etherswitch/etherswitch.h')
-rw-r--r--sys/dev/etherswitch/etherswitch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/etherswitch/etherswitch.h b/sys/dev/etherswitch/etherswitch.h
index bb0167b6ae915..26190198b529d 100644
--- a/sys/dev/etherswitch/etherswitch.h
+++ b/sys/dev/etherswitch/etherswitch.h
@@ -26,6 +26,8 @@ struct etherswitch_phyreg {
typedef struct etherswitch_phyreg etherswitch_phyreg_t;
#define ETHERSWITCH_NAMEMAX 64
+#define ETHERSWITCH_VID_MASK 0xfff
+#define ETHERSWITCH_VID_VALID (1 << 12)
#define ETHERSWITCH_VLAN_ISL (1 << 0) /* ISL */
#define ETHERSWITCH_VLAN_PORT (1 << 1) /* Port based vlan */
#define ETHERSWITCH_VLAN_DOT1Q (1 << 2) /* 802.1q */