Lines Matching refs:proto
146 union nft_entry *entry, u16 proto, bool inv) in nft_target_set_tgchk_param() argument
152 entry->e4.ip.proto = proto; in nft_target_set_tgchk_param()
156 if (proto) in nft_target_set_tgchk_param()
159 entry->e6.ipv6.proto = proto; in nft_target_set_tgchk_param()
163 entry->ebt.ethproto = (__force __be16)proto; in nft_target_set_tgchk_param()
200 static int nft_parse_compat(const struct nlattr *attr, u16 *proto, bool *inv) in nft_parse_compat() argument
226 *proto = l4proto; in nft_parse_compat()
250 u16 proto = 0; in nft_target_init() local
258 ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv); in nft_target_init()
263 nft_target_set_tgchk_param(&par, ctx, target, info, &e, proto, inv); in nft_target_init()
267 ret = xt_check_target(&par, size, proto, inv); in nft_target_init()
447 union nft_entry *entry, u16 proto, bool inv) in nft_match_set_mtchk_param() argument
453 entry->e4.ip.proto = proto; in nft_match_set_mtchk_param()
457 if (proto) in nft_match_set_mtchk_param()
460 entry->e6.ipv6.proto = proto; in nft_match_set_mtchk_param()
464 entry->ebt.ethproto = (__force __be16)proto; in nft_match_set_mtchk_param()
504 u16 proto = 0; in __nft_match_init() local
512 ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv); in __nft_match_init()
517 nft_match_set_mtchk_param(&par, ctx, match, info, &e, proto, inv); in __nft_match_init()
521 return xt_check_match(&par, size, proto, inv); in __nft_match_init()