Home | History | Annotate | Download | only in ip

Lines Matching refs:tb

176 static void vlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
179 if (!tb)
182 if (!tb[IFLA_VLAN_ID] ||
183 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16))
186 fprintf(f, "id %u ", rta_getattr_u16(tb[IFLA_VLAN_ID]));
188 if (tb[IFLA_VLAN_FLAGS]) {
189 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags))
191 flags = RTA_DATA(tb[IFLA_VLAN_FLAGS]);
194 if (tb[IFLA_VLAN_INGRESS_QOS])
195 vlan_print_map(f, "ingress-qos-map", tb[IFLA_VLAN_INGRESS_QOS]);
196 if (tb[IFLA_VLAN_EGRESS_QOS])
197 vlan_print_map(f, "egress-qos-map", tb[IFLA_VLAN_EGRESS_QOS]);