Lines Matching refs:thdr
343 struct tcf_ematch_tree_hdr *thdr; in rtnl_ematch_parse_attr() local
357 thdr = nla_data(tb[TCA_EMATCH_TREE_HDR]); in rtnl_ematch_parse_attr()
360 if (thdr->nmatches == 0) { in rtnl_ematch_parse_attr()
369 thdr->nmatches, thdr->progid); in rtnl_ematch_parse_attr()
376 if (thdr->nmatches > (nla_len(tb[TCA_EMATCH_TREE_LIST]) / in rtnl_ematch_parse_attr()
380 if (!(index = calloc(thdr->nmatches, sizeof(struct rtnl_ematch *)))) in rtnl_ematch_parse_attr()
383 if (!(tree = rtnl_ematch_tree_alloc(thdr->progid))) { in rtnl_ematch_parse_attr()
404 if (nmatches >= thdr->nmatches) { in rtnl_ematch_parse_attr()
421 *((uint32_t *) data) >= thdr->nmatches) { in rtnl_ematch_parse_attr()
455 if (nmatches != thdr->nmatches) { in rtnl_ematch_parse_attr()
593 struct tcf_ematch_tree_hdr thdr = { in rtnl_ematch_fill_attr() local
608 thdr.nmatches = index; in rtnl_ematch_fill_attr()
609 NLA_PUT(msg, TCA_EMATCH_TREE_HDR, sizeof(thdr), &thdr); in rtnl_ematch_fill_attr()