Home | History | Annotate | Download | only in ip

Lines Matching refs:tb

165 static void vlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
168 if (!tb)
171 if (!tb[IFLA_VLAN_ID] ||
172 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16))
175 fprintf(f, "id %u ", *(__u16 *)RTA_DATA(tb[IFLA_VLAN_ID]));
177 if (tb[IFLA_VLAN_FLAGS]) {
178 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags))
180 flags = RTA_DATA(tb[IFLA_VLAN_FLAGS]);
183 if (tb[IFLA_VLAN_INGRESS_QOS])
184 vlan_print_map(f, "ingress-qos-map", tb[IFLA_VLAN_INGRESS_QOS]);
185 if (tb[IFLA_VLAN_EGRESS_QOS])
186 vlan_print_map(f, "egress-qos-map", tb[IFLA_VLAN_EGRESS_QOS]);