sys/net/if_vlan.c
/*
 * Handle IFF_* flags that require certain changes on the parent:
 * if "status" is true, update parent's flags respective to our if_flags;
 * if "status" is false, forcedly clear the flags set on parent.
 */
Handle IFF_* flags that require certain changes on the parent:
if "status" is true, update parent's flags respective to our if_flags;
if "status" is false, forcedly clear the flags set on parent.
Handle IFF_ * flags that require certain changes on the parent : if " status " is true update parent ' s flags respective to our if_flags ; if " status " is false forcedly clear the flags set on parent .
static int
vlan_setflags(struct ifnet *ifp, int status)
{
	int error, i;
	for (i = 0; vlan_pflags[i].flag; i++) {
		error = vlan_setflag(ifp, vlan_pflags[i].flag,
				     status, vlan_pflags[i].func);
		if (error)
			return (error);
	}
	return (0);
}
static int vlan_setflags ( struct ifnet * ifp , int status ) { int error , i ; for ( i = 0 ; vlan_pflags [ i ] . flag ; i ++ ) { error = vlan_setflag ( ifp , vlan_pflags [ i ] . flag , status , vlan_pflags [ i ] . func ) ; if ( error ) return ( error ) ; } return ( 0 ) ; }
Handle IFF_* flags that require certain changes on the parent:
 if "status" is true, update parent's flags respective to our if_flags;
 if "status" is false, forcedly clear the flags set on parent.
Handle IFF_ * flags that require certain changes on the parent : if " status " is true update parent ' s flags respective to our if_flags ; if " status " is false forcedly clear the flags set on parent .