Home | History | Annotate | Download | only in tc

Lines Matching refs:tb

366 static int print_ematch_seq(FILE *fd, struct rtattr **tb, int start,
375 if (tb[i] == NULL)
378 dlen = RTA_PAYLOAD(tb[i]) - sizeof(*hdr);
379 data = (void *) RTA_DATA(tb[i]) + sizeof(*hdr);
384 hdr = RTA_DATA(tb[i]);
399 if (print_ematch_seq(fd, tb, ref + 1, prefix + 1) < 0)
446 struct rtattr **tb;
448 tb = malloc((hdr->nmatches + 1) * sizeof(struct rtattr *));
449 if (tb == NULL)
453 if (parse_rtattr_nested(tb, hdr->nmatches, rta) < 0)
457 if (print_ematch_seq(fd, tb, 1, 1) < 0)
463 free(tb);
469 struct rtattr *tb[TCA_EMATCH_TREE_MAX+1];
472 if (parse_rtattr_nested(tb, TCA_EMATCH_TREE_MAX, rta) < 0)
475 if (tb[TCA_EMATCH_TREE_HDR] == NULL) {
480 if (tb[TCA_EMATCH_TREE_LIST] == NULL) {
485 if (RTA_PAYLOAD(tb[TCA_EMATCH_TREE_HDR]) < sizeof(*hdr)) {
490 hdr = RTA_DATA(tb[TCA_EMATCH_TREE_HDR]);
492 return print_ematch_list(fd, hdr, tb[TCA_EMATCH_TREE_LIST]);