Lines Matching refs:flags
86 struct ifla_vlan_flags flags = { 0 }; in vlan_parse_opt() local
102 flags.mask |= VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
104 flags.flags |= VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
106 flags.flags &= ~VLAN_FLAG_REORDER_HDR; in vlan_parse_opt()
111 flags.mask |= VLAN_FLAG_GVRP; in vlan_parse_opt()
113 flags.flags |= VLAN_FLAG_GVRP; in vlan_parse_opt()
115 flags.flags &= ~VLAN_FLAG_GVRP; in vlan_parse_opt()
120 flags.mask |= VLAN_FLAG_MVRP; in vlan_parse_opt()
122 flags.flags |= VLAN_FLAG_MVRP; in vlan_parse_opt()
124 flags.flags &= ~VLAN_FLAG_MVRP; in vlan_parse_opt()
129 flags.mask |= VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
131 flags.flags |= VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
133 flags.flags &= ~VLAN_FLAG_LOOSE_BINDING; in vlan_parse_opt()
159 if (flags.mask) in vlan_parse_opt()
160 addattr_l(n, 1024, IFLA_VLAN_FLAGS, &flags, sizeof(flags)); in vlan_parse_opt()
181 static void vlan_print_flags(FILE *fp, __u32 flags) in vlan_print_flags() argument
184 #define _PF(f) if (flags & VLAN_FLAG_##f) { \ in vlan_print_flags()
185 flags &= ~ VLAN_FLAG_##f; \ in vlan_print_flags()
186 fprintf(fp, #f "%s", flags ? "," : ""); \ in vlan_print_flags()
193 if (flags) in vlan_print_flags()
194 fprintf(fp, "%x", flags); in vlan_print_flags()
200 struct ifla_vlan_flags *flags; in vlan_print_opt() local
223 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags)) in vlan_print_opt()
225 flags = RTA_DATA(tb[IFLA_VLAN_FLAGS]); in vlan_print_opt()
226 vlan_print_flags(f, flags->flags); in vlan_print_opt()