Home | History | Annotate | Download | only in tc

Lines Matching refs:hdr

180 		struct tcf_ematch_hdr hdr = {
185 hdr.flags |= TCF_EM_INVERT;
191 addraw_l(n, MAX_MSG, &hdr, sizeof(hdr));
216 hdr.kind = num;
217 if (e->parse_eopt(n, &hdr, t->args->next) < 0)
341 struct tcf_ematch_tree_hdr hdr = {
348 addattr_l(n, MAX_MSG, TCA_EMATCH_TREE_HDR, &hdr, sizeof(hdr));
370 struct tcf_ematch_hdr *hdr;
378 dlen = RTA_PAYLOAD(tb[i]) - sizeof(*hdr);
379 data = (void *) RTA_DATA(tb[i]) + sizeof(*hdr);
384 hdr = RTA_DATA(tb[i]);
386 if (hdr->flags & TCF_EM_INVERT)
389 if (hdr->kind == 0) {
408 e = get_ematch_kind_num(hdr->kind);
411 hdr->kind);
414 if (e->print_eopt(fd, hdr, data, dlen) < 0)
418 if (hdr->flags & TCF_EM_REL_MASK)
423 switch (hdr->flags & TCF_EM_REL_MASK) {
442 static int print_ematch_list(FILE *fd, struct tcf_ematch_tree_hdr *hdr,
448 tb = malloc((hdr->nmatches + 1) * sizeof(struct rtattr *));
452 if (hdr->nmatches > 0) {
453 if (parse_rtattr_nested(tb, hdr->nmatches, rta) < 0)
470 struct tcf_ematch_tree_hdr *hdr;
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]);