Changeset View
Changeset View
Standalone View
Standalone View
if_vlan.c
Context not available. | |||||
#ifdef RATELIMIT | #ifdef RATELIMIT | ||||
static int vlan_snd_tag_alloc(struct ifnet *, | static int vlan_snd_tag_alloc(struct ifnet *, | ||||
union if_snd_tag_alloc_params *, struct m_snd_tag **); | union if_snd_tag_alloc_params *, struct m_snd_tag **); | ||||
static void vlan_snd_tag_free(struct m_snd_tag *); | |||||
#endif | #endif | ||||
static void vlan_qflush(struct ifnet *ifp); | static void vlan_qflush(struct ifnet *ifp); | ||||
static int vlan_setflag(struct ifnet *ifp, int flag, int status, | static int vlan_setflag(struct ifnet *ifp, int flag, int status, | ||||
Context not available. | |||||
ifp->if_ioctl = vlan_ioctl; | ifp->if_ioctl = vlan_ioctl; | ||||
#ifdef RATELIMIT | #ifdef RATELIMIT | ||||
ifp->if_snd_tag_alloc = vlan_snd_tag_alloc; | ifp->if_snd_tag_alloc = vlan_snd_tag_alloc; | ||||
ifp->if_snd_tag_free = vlan_snd_tag_free; | |||||
#endif | #endif | ||||
ifp->if_flags = VLAN_IFFLAGS; | ifp->if_flags = VLAN_IFFLAGS; | ||||
ether_ifattach(ifp, eaddr); | ether_ifattach(ifp, eaddr); | ||||
Context not available. | |||||
/* forward allocation request */ | /* forward allocation request */ | ||||
return (ifp->if_snd_tag_alloc(ifp, params, ppmt)); | return (ifp->if_snd_tag_alloc(ifp, params, ppmt)); | ||||
} | } | ||||
static void | |||||
vlan_snd_tag_free(struct m_snd_tag *tag) | |||||
{ | |||||
tag->ifp->if_snd_tag_free(tag); | |||||
} | |||||
#endif | #endif | ||||
Context not available. |