Lines Matching refs:mask
42 uint32_t mask; member
73 static void do_chflags(char *dev, uint32_t flags, uint32_t mask) in do_chflags() argument
81 if ((ifr.ifr_flags ^ flags) & mask) { in do_chflags()
82 ifr.ifr_flags &= ~mask; in do_chflags()
83 ifr.ifr_flags |= mask & flags; in do_chflags()
248 uint32_t mask = 0; in do_set() local
277 mask |= IFF_UP; in do_set()
280 mask |= IFF_UP; in do_set()
323 mask |= IFF_MULTICAST; in do_set()
331 mask |= IFF_NOARP; in do_set()
339 mask |= IFF_PROMISC; in do_set()
497 if (mask)
498 do_chflags(dev, flags, mask);
567 flags.mask |= VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
572 flags.mask |= VLAN_FLAG_GVRP; in vlan_parse_opt()
577 flags.mask |= VLAN_FLAG_MVRP; in vlan_parse_opt()
582 flags.mask |= VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
591 if (flags.mask) in vlan_parse_opt()