MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vlan_setflags

Function vlan_setflags

freebsd/net/if_vlan.c:1659–1671  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1657 * if "status" is false, forcedly clear the flags set on parent.
1658 */
1659static int
1660vlan_setflags(struct ifnet *ifp, int status)
1661{
1662 int error, i;
1663
1664 for (i = 0; vlan_pflags[i].flag; i++) {
1665 error = vlan_setflag(ifp, vlan_pflags[i].flag,
1666 status, vlan_pflags[i].func);
1667 if (error)
1668 return (error);
1669 }
1670 return (0);
1671}
1672
1673/* Inform all vlans that their parent has changed link state */
1674static void

Callers 3

vlan_configFunction · 0.85
vlan_unconfig_lockedFunction · 0.85
vlan_ioctlFunction · 0.85

Calls 1

vlan_setflagFunction · 0.85

Tested by

no test coverage detected