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)
452 if (parse_rtattr_nested(tb, hdr->nmatches, rta) < 0)
456 if (print_ematch_seq(fd, tb, 1, 1) < 0)
461 free(tb);
467 struct rtattr *tb[TCA_EMATCH_TREE_MAX+1];
470 if (parse_rtattr_nested(tb, TCA_EMATCH_TREE_MAX, rta) < 0)
473 if (tb[TCA_EMATCH_TREE_HDR] == NULL) {
478 if (tb[TCA_EMATCH_TREE_LIST] == NULL) {
483 if (RTA_PAYLOAD(tb[TCA_EMATCH_TREE_HDR]) < sizeof(*hdr)) {
488 hdr = RTA_DATA(tb[TCA_EMATCH_TREE_HDR]);
490 return print_ematch_list(fd, hdr, tb[TCA_EMATCH_TREE_LIST]);