Lines Matching refs:tb
368 static int print_ematch_seq(FILE *fd, struct rtattr **tb, int start,
377 if (tb[i] == NULL)
380 dlen = RTA_PAYLOAD(tb[i]) - sizeof(*hdr);
381 data = (void *) RTA_DATA(tb[i]) + sizeof(*hdr);
386 hdr = RTA_DATA(tb[i]);
401 if (print_ematch_seq(fd, tb, ref + 1, prefix + 1) < 0)
448 struct rtattr **tb;
450 tb = malloc((hdr->nmatches + 1) * sizeof(struct rtattr *));
451 if (tb == NULL)
454 if (parse_rtattr_nested(tb, hdr->nmatches, rta) < 0)
458 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]);