From 2d3799107ff75049bef788fec5215335f07adcc6 Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 3 Jan 2004 03:33:39 +0000 Subject: 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 --- sys/net/if_vlan_var.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/net/if_vlan_var.h') 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_ */ -- cgit v1.1