diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-03-16 11:48:28 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-03-16 11:48:28 +0000 |
commit | 07de2e4ea3ed2dee63273380ac432f0d61e473a1 (patch) | |
tree | a2cf0861f3f00dd62571f1d308a12ab30cd357a5 /sys/netinet/if_ether.h | |
parent | 3d4803f6081fbb3aedc99325e53a7a544fc058b0 (diff) |
macros for the null, min, and max vlan ids.
ok mpi@ and tweaks from sthen@
Diffstat (limited to 'sys/netinet/if_ether.h')
-rw-r--r-- | sys/netinet/if_ether.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index fe88c164288..365693b0103 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.68 2016/03/14 03:48:47 dlg Exp $ */ +/* $OpenBSD: if_ether.h,v 1.69 2016/03/16 11:48:27 dlg Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -87,7 +87,11 @@ struct ether_vlan_header { u_int16_t evl_proto; }; -#define EVL_VLID_MASK 0x0FFF +#define EVL_VLID_MASK 0xFFF +#define EVL_VLID_NULL 0x000 +/* 0x000 and 0xfff are reserved */ +#define EVL_VLID_MIN 0x001 +#define EVL_VLID_MAX 0xFFE #define EVL_VLANOFTAG(tag) ((tag) & EVL_VLID_MASK) #define EVL_PRIO_MAX 7 |