diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-11-07 00:52:41 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-11-07 00:52:41 +0000 |
commit | 1626a89399b443f06ae519d192a5248e590d9ac1 (patch) | |
tree | d634d9daf0d1f50eb7a43cf531d37152c8b3a7c3 /sys/net | |
parent | bf866b969bf3987eb10cbb9b8391ebb1ae28b4d1 (diff) |
Replace the number of bits to shift with EVL_PRIO_BITS in the
EVL_PRIOFTAG macro.
ok naddy@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_vlan_var.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan_var.h b/sys/net/if_vlan_var.h index 3534f92d7e0..e46439ec00a 100644 --- a/sys/net/if_vlan_var.h +++ b/sys/net/if_vlan_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan_var.h,v 1.18 2006/02/09 00:05:55 reyk Exp $ */ +/* $OpenBSD: if_vlan_var.h,v 1.19 2008/11/07 00:52:40 brad Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -77,7 +77,7 @@ struct ether_vlan_header { #define EVL_VLID_MASK 0x0FFF #define EVL_VLANOFTAG(tag) ((tag) & EVL_VLID_MASK) -#define EVL_PRIOFTAG(tag) (((tag) >> 13) & 7) +#define EVL_PRIOFTAG(tag) (((tag) >> EVL_PRIO_BITS) & 7) #define EVL_ENCAPLEN 4 /* length in octets of encapsulation */ #define EVL_PRIO_MAX 7 #define EVL_PRIO_BITS 13 |