Home
last modified time | relevance | path

Searched refs:regs (Results 1 – 25 of 32) sorted by relevance

12

/net/netfilter/
Dnf_tables_core.c66 struct nft_regs *regs) in nft_cmp_fast_eval() argument
71 if ((regs->data[priv->sreg] & mask) == priv->data) in nft_cmp_fast_eval()
73 regs->verdict.code = NFT_BREAK; in nft_cmp_fast_eval()
77 struct nft_regs *regs, in nft_payload_fast_eval() argument
82 u32 *dest = &regs->data[priv->dreg]; in nft_payload_fast_eval()
118 struct nft_regs regs; in nft_do_chain() local
129 regs.verdict.code = NFT_CONTINUE; in nft_do_chain()
140 nft_cmp_fast_eval(expr, &regs); in nft_do_chain()
142 !nft_payload_fast_eval(expr, &regs, pkt)) in nft_do_chain()
143 expr->ops->eval(expr, &regs, pkt); in nft_do_chain()
[all …]
Dnft_nat.c40 struct nft_regs *regs, in nft_nat_eval() argument
52 regs->data[priv->sreg_addr_min]; in nft_nat_eval()
54 regs->data[priv->sreg_addr_max]; in nft_nat_eval()
58 &regs->data[priv->sreg_addr_min], in nft_nat_eval()
61 &regs->data[priv->sreg_addr_max], in nft_nat_eval()
69 *(__be16 *)&regs->data[priv->sreg_proto_min]; in nft_nat_eval()
71 *(__be16 *)&regs->data[priv->sreg_proto_max]; in nft_nat_eval()
77 regs->verdict.code = nf_nat_setup_info(ct, &range, priv->type); in nft_nat_eval()
Dnft_dynset.c31 struct nft_regs *regs) in nft_dynset_new() argument
43 &regs->data[priv->sreg_key], in nft_dynset_new()
44 &regs->data[priv->sreg_data], in nft_dynset_new()
61 struct nft_regs *regs, in nft_dynset_eval() argument
70 if (set->ops->update(set, &regs->data[priv->sreg_key], nft_dynset_new, in nft_dynset_eval()
71 expr, regs, &ext)) { in nft_dynset_eval()
84 sexpr->ops->eval(sexpr, regs, pkt); in nft_dynset_eval()
88 regs->verdict.code = NFT_BREAK; in nft_dynset_eval()
Dnft_compat.c58 struct nft_regs *regs, in nft_target_eval_xt() argument
75 regs->verdict.code = NFT_CONTINUE; in nft_target_eval_xt()
78 regs->verdict.code = ret; in nft_target_eval_xt()
84 struct nft_regs *regs, in nft_target_eval_bridge() argument
101 regs->verdict.code = NF_ACCEPT; in nft_target_eval_bridge()
104 regs->verdict.code = NF_DROP; in nft_target_eval_bridge()
107 regs->verdict.code = NFT_CONTINUE; in nft_target_eval_bridge()
110 regs->verdict.code = NFT_RETURN; in nft_target_eval_bridge()
113 regs->verdict.code = ret; in nft_target_eval_bridge()
308 struct nft_regs *regs, in nft_match_eval() argument
[all …]
Dnft_lookup.c29 struct nft_regs *regs, in nft_lookup_eval() argument
36 if (set->ops->lookup(set, &regs->data[priv->sreg], &ext)) { in nft_lookup_eval()
38 nft_data_copy(&regs->data[priv->dreg], in nft_lookup_eval()
42 regs->verdict.code = NFT_BREAK; in nft_lookup_eval()
Dnft_exthdr.c29 struct nft_regs *regs, in nft_exthdr_eval() argument
33 u32 *dest = &regs->data[priv->dreg]; in nft_exthdr_eval()
50 regs->verdict.code = NFT_BREAK; in nft_exthdr_eval()
Dnft_meta.c28 struct nft_regs *regs, in nft_meta_get_eval() argument
35 u32 *dest = &regs->data[priv->dreg]; in nft_meta_get_eval()
213 regs->verdict.code = NFT_BREAK; in nft_meta_get_eval()
218 struct nft_regs *regs, in nft_meta_set_eval() argument
223 u32 value = regs->data[meta->sreg]; in nft_meta_set_eval()
Dnft_limit.c109 struct nft_regs *regs, in nft_limit_pkts_eval() argument
115 regs->verdict.code = NFT_BREAK; in nft_limit_pkts_eval()
157 struct nft_regs *regs, in nft_limit_pkt_bytes_eval() argument
164 regs->verdict.code = NFT_BREAK; in nft_limit_pkt_bytes_eval()
Dnft_ct.c34 struct nft_regs *regs, in nft_ct_get_eval() argument
38 u32 *dest = &regs->data[priv->dreg]; in nft_ct_get_eval()
149 regs->verdict.code = NFT_BREAK; in nft_ct_get_eval()
153 struct nft_regs *regs, in nft_ct_set_eval() argument
159 u32 value = regs->data[priv->sreg]; in nft_ct_set_eval()
Dnft_bitwise.c29 struct nft_regs *regs, in nft_bitwise_eval() argument
33 const u32 *src = &regs->data[priv->sreg]; in nft_bitwise_eval()
34 u32 *dst = &regs->data[priv->dreg]; in nft_bitwise_eval()
Dnft_byteorder.c29 struct nft_regs *regs, in nft_byteorder_eval() argument
33 u32 *src = &regs->data[priv->sreg]; in nft_byteorder_eval()
34 u32 *dst = &regs->data[priv->dreg]; in nft_byteorder_eval()
Dnft_cmp.c28 struct nft_regs *regs, in nft_cmp_eval() argument
34 d = memcmp(&regs->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval()
62 regs->verdict.code = NFT_BREAK; in nft_cmp_eval()
Dnft_payload.c69 struct nft_regs *regs, in nft_payload_eval() argument
74 u32 *dest = &regs->data[priv->dreg]; in nft_payload_eval()
108 regs->verdict.code = NFT_BREAK; in nft_payload_eval()
Dnft_immediate.c27 struct nft_regs *regs, in nft_immediate_eval() argument
32 nft_data_copy(&regs->data[priv->dreg], &priv->data, priv->dlen); in nft_immediate_eval()
Dnft_queue.c31 struct nft_regs *regs, in nft_queue_eval() argument
54 regs->verdict.code = ret; in nft_queue_eval()
/net/ipv6/netfilter/
Dnft_redir_ipv6.c21 struct nft_regs *regs, in nft_redir_ipv6_eval() argument
30 *(__be16 *)&regs->data[priv->sreg_proto_min], in nft_redir_ipv6_eval()
32 *(__be16 *)&regs->data[priv->sreg_proto_max], in nft_redir_ipv6_eval()
38 regs->verdict.code = nf_nat_redirect_ipv6(pkt->skb, &range, pkt->hook); in nft_redir_ipv6_eval()
Dnft_dup_ipv6.c24 struct nft_regs *regs, in nft_dup_ipv6_eval() argument
28 struct in6_addr *gw = (struct in6_addr *)&regs->data[priv->sreg_addr]; in nft_dup_ipv6_eval()
29 int oif = priv->sreg_dev ? regs->data[priv->sreg_dev] : -1; in nft_dup_ipv6_eval()
Dnft_reject_ipv6.c23 struct nft_regs *regs, in nft_reject_ipv6_eval() argument
40 regs->verdict.code = NF_DROP; in nft_reject_ipv6_eval()
Dnft_masq_ipv6.c21 struct nft_regs *regs, in nft_masq_ipv6_eval() argument
30 regs->verdict.code = nf_nat_masquerade_ipv6(pkt->skb, &range, pkt->out); in nft_masq_ipv6_eval()
/net/ipv4/netfilter/
Dnft_redir_ipv4.c21 struct nft_regs *regs, in nft_redir_ipv4_eval() argument
30 *(__be16 *)&regs->data[priv->sreg_proto_min]; in nft_redir_ipv4_eval()
32 *(__be16 *)&regs->data[priv->sreg_proto_max]; in nft_redir_ipv4_eval()
38 regs->verdict.code = nf_nat_redirect_ipv4(pkt->skb, &mr, in nft_redir_ipv4_eval()
Dnft_dup_ipv4.c24 struct nft_regs *regs, in nft_dup_ipv4_eval() argument
29 .s_addr = (__force __be32)regs->data[priv->sreg_addr], in nft_dup_ipv4_eval()
31 int oif = priv->sreg_dev ? regs->data[priv->sreg_dev] : -1; in nft_dup_ipv4_eval()
Dnft_reject_ipv4.c23 struct nft_regs *regs, in nft_reject_ipv4_eval() argument
39 regs->verdict.code = NF_DROP; in nft_reject_ipv4_eval()
Dnft_masq_ipv4.c20 struct nft_regs *regs, in nft_masq_ipv4_eval() argument
29 regs->verdict.code = nf_nat_masquerade_ipv4(pkt->skb, pkt->hook, in nft_masq_ipv4_eval()
/net/bridge/netfilter/
Dnft_meta_bridge.c22 struct nft_regs *regs, in nft_meta_bridge_get_eval() argument
27 u32 *dest = &regs->data[priv->dreg]; in nft_meta_bridge_get_eval()
46 return nft_meta_get_eval(expr, regs, pkt); in nft_meta_bridge_get_eval()
48 regs->verdict.code = NFT_BREAK; in nft_meta_bridge_get_eval()
/net/mac80211/
Dethtool.c223 struct ethtool_regs *regs, in ieee80211_get_regs() argument
228 regs->version = wdev->wiphy->hw_version; in ieee80211_get_regs()
229 regs->len = 0; in ieee80211_get_regs()

12