Home | History | Annotate | Download | only in tc

Lines Matching refs:tb

292 	struct rtattr *tb[TCA_ACT_MAX + 1];
299 parse_rtattr_nested(tb, TCA_ACT_MAX, arg);
301 if (tb[TCA_ACT_KIND] == NULL) {
307 a = get_action_kind(RTA_DATA(tb[TCA_ACT_KIND]));
311 err = a->print_aopt(a, f, tb[TCA_ACT_OPTIONS]);
316 if (show_stats && tb[TCA_ACT_STATS]) {
319 print_tcstats2_attr(f, tb[TCA_ACT_STATS], "\t", NULL);
320 if (tb[TCA_ACT_COOKIE]) {
321 int strsz = RTA_PAYLOAD(tb[TCA_ACT_COOKIE]);
325 hexstring_n2a(RTA_DATA(tb[TCA_ACT_COOKIE]),
338 struct rtattr *tb[TCA_MAX + 1];
343 parse_rtattr_nested(tb, TCA_MAX, arg);
345 if (tb[TCA_KIND] == NULL) {
350 a = get_action_kind(RTA_DATA(tb[TCA_KIND]));
354 delete_count = RTA_DATA(tb[TCA_FCNT]);
372 struct rtattr *tb[tot_acts + 1];
374 parse_rtattr_nested(tb, tot_acts, arg);
376 if (tab_flush && NULL != tb[0] && NULL == tb[1])
377 return tc_print_action_flush(f, tb[0]);
380 if (tb[i]) {
382 if (tc_print_one_action(f, tb[i]) < 0) {
400 struct rtattr *tb[TCA_ROOT_MAX+1];
409 parse_rtattr(tb, TCA_ROOT_MAX, TA_RTA(t), len);
411 if (tb[TCA_ROOT_COUNT])
412 tot_acts = RTA_DATA(tb[TCA_ROOT_COUNT]);
415 if (tb[TCA_ACT_TAB] == NULL) {
440 tc_print_action(fp, tb[TCA_ACT_TAB], tot_acts ? *tot_acts:0);