FreeBSD/sys/net/if_vlan.c
/*
 * Store a cookie in our softc that drivers can use to store driver
 * private per-instance data in.
 */
Store a cookie in our softc that drivers can use to store driver
private per-instance data in.
Store a cookie in our softc that drivers can use to store driver private per - instance data in .
static int
vlan_setcookie(struct ifnet *ifp, void *cookie)
{
	struct ifvlan *ifv;
	if (ifp->if_type != IFT_L2VLAN)
		return (EINVAL);
	ifv = ifp->if_softc;
	ifv->ifv_cookie = cookie;
	return (0);
}
static int vlan_setcookie ( struct ifnet * ifp , void * cookie ) { struct ifvlan * ifv ; if ( ifp -> if_type != IFT_L2VLAN ) return ( EINVAL ) ; ifv = ifp -> if_softc ; ifv -> ifv_cookie = cookie ; return ( 0 ) ; }
Store a cookie in our softc that drivers can use to store driver
 private per-instance data in.
Store a cookie in our softc that drivers can use to store driver private per - instance data in .