* 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. */
| 1657 | * if "status" is false, forcedly clear the flags set on parent. |
| 1658 | */ |
| 1659 | static int |
| 1660 | vlan_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 */ |
| 1674 | static void |
no test coverage detected