Lines Matching refs:flags
79 struct ifla_vlan_flags flags = { 0 }; in vlan_parse_opt() local
90 flags.mask |= VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
92 flags.flags |= VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
94 flags.flags &= ~VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
99 flags.mask |= VLAN_FLAG_GVRP; in vlan_parse_opt()
101 flags.flags |= VLAN_FLAG_GVRP; in vlan_parse_opt()
103 flags.flags &= ~VLAN_FLAG_GVRP; in vlan_parse_opt()
108 flags.mask |= VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
110 flags.flags |= VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
112 flags.flags &= ~VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
138 if (flags.mask) in vlan_parse_opt()
139 addattr_l(n, 1024, IFLA_VLAN_FLAGS, &flags, sizeof(flags)); in vlan_parse_opt()
160 static void vlan_print_flags(FILE *fp, __u32 flags) in vlan_print_flags() argument
163 #define _PF(f) if (flags & VLAN_FLAG_##f) { \ in vlan_print_flags()
164 flags &= ~ VLAN_FLAG_##f; \ in vlan_print_flags()
165 fprintf(fp, #f "%s", flags ? "," : ""); \ in vlan_print_flags()
171 if (flags) in vlan_print_flags()
172 fprintf(fp, "%x", flags); in vlan_print_flags()
178 struct ifla_vlan_flags *flags; in vlan_print_opt() local
189 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags)) in vlan_print_opt()
191 flags = RTA_DATA(tb[IFLA_VLAN_FLAGS]); in vlan_print_opt()
192 vlan_print_flags(f, flags->flags); in vlan_print_opt()