summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan_var.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-01-03 03:33:39 +0000
committersam <sam@FreeBSD.org>2004-01-03 03:33:39 +0000
commit2d3799107ff75049bef788fec5215335f07adcc6 (patch)
tree6cecb9b0b181f60bdb664d75d4261b21f6969063 /sys/net/if_vlan_var.h
parentf3e2bcfe4cdff60cd22ef253e4a2b170eec12e90 (diff)
downloadFreeBSD-src-2d3799107ff75049bef788fec5215335f07adcc6.zip
FreeBSD-src-2d3799107ff75049bef788fec5215335f07adcc6.tar.gz
backout the switch to use a zone for vlan tags; this requires
vlans be present if any driver with h/w vlan tagging is configured
Diffstat (limited to 'sys/net/if_vlan_var.h')
-rw-r--r--sys/net/if_vlan_var.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_vlan_var.h b/sys/net/if_vlan_var.h
index a7a540c..409db00 100644
--- a/sys/net/if_vlan_var.h
+++ b/sys/net/if_vlan_var.h
@@ -98,7 +98,8 @@ struct vlanreq {
#define VLAN_INPUT_TAG(_ifp, _m, _t, _errcase) do { \
struct m_tag *mtag; \
- mtag = vlan_tag_alloc(M_NOWAIT); \
+ mtag = m_tag_alloc(MTAG_VLAN, MTAG_VLAN_TAG, \
+ sizeof (u_int), M_NOWAIT); \
if (mtag == NULL) { \
(_ifp)->if_ierrors++; \
m_freem(_m); \
@@ -112,8 +113,6 @@ struct vlanreq {
((_ifp)->if_nvlans != 0 ? \
m_tag_locate((_m), MTAG_VLAN, MTAG_VLAN_TAG, NULL) : NULL)
#define VLAN_TAG_VALUE(_mt) (*(u_int *)((_mt)+1))
-
-extern struct m_tag *vlan_tag_alloc(int flags);
#endif /* _KERNEL */
#endif /* _NET_IF_VLAN_VAR_H_ */
OpenPOWER on IntegriCloud