src/sys/net/if_vlan.c
/*
 * Return the 12-bit VLAN VID for this interface, for use by external
 * components such as Infiniband.
 *
 * XXXRW: Note that the function name here is historical; it should be named
 * vlan_vid().
 */
Return the 12-bit VLAN VID for this interface, for use by external
components such as Infiniband.

Note that the function name here is historical; it should be named
vlan_vid().
Return the 12 - bit VLAN VID for this interface for use by external components such as Infiniband . Note that the function name here is historical ; it should be named vlan_vid () .
static int
vlan_tag(struct ifnet *ifp, uint16_t *vidp)
{
	struct ifvlan *ifv;
	if (ifp->if_type != IFT_L2VLAN)
		return (EINVAL);
	ifv = ifp->if_softc;
	*vidp = ifv->ifv_vid;
	return (0);
}
static int vlan_tag ( struct ifnet * ifp , uint16_t * vidp ) { struct ifvlan * ifv ; if ( ifp -> if_type != IFT_L2VLAN ) return ( EINVAL ) ; ifv = ifp -> if_softc ; * vidp = ifv -> ifv_vid ; return ( 0 ) ; }
Return the 12-bit VLAN VID for this interface, for use by external
 components such as Infiniband.
Return the 12 - bit VLAN VID for this interface for use by external components such as Infiniband .