diff options
| author | Luiz Otavio O Souza <loos@FreeBSD.org> | 2013-07-23 13:56:38 +0000 |
|---|---|---|
| committer | Luiz Otavio O Souza <loos@FreeBSD.org> | 2013-07-23 13:56:38 +0000 |
| commit | cc320e372e49d48055e9859a9df60c81481c0f1b (patch) | |
| tree | 32395f066ef0466740d4e137c2ced3772250ba58 /sys/dev/etherswitch/etherswitch.h | |
| parent | da2a0dcb7a4b9f8ab1b1b94d02799204b8d28e81 (diff) | |
Notes
Diffstat (limited to 'sys/dev/etherswitch/etherswitch.h')
| -rw-r--r-- | sys/dev/etherswitch/etherswitch.h | 2 |
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 */ |
