Home
last modified time | relevance | path

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

12

/net/netfilter/
Dnf_tables_core.c75 struct nft_regs *regs) in nft_cmp_fast_eval() argument
80 if ((regs->data[priv->sreg] & mask) == priv->data) in nft_cmp_fast_eval()
82 regs->verdict.code = NFT_BREAK; in nft_cmp_fast_eval()
86 struct nft_regs *regs, in nft_payload_fast_eval() argument
91 u32 *dest = &regs->data[priv->dreg]; in nft_payload_fast_eval()
153 struct nft_regs regs; in nft_do_chain() local
162 nft_trace_init(&info, pkt, &regs.verdict, basechain); in nft_do_chain()
167 regs.verdict.code = NFT_CONTINUE; in nft_do_chain()
178 nft_cmp_fast_eval(expr, &regs); in nft_do_chain()
180 !nft_payload_fast_eval(expr, &regs, pkt)) in nft_do_chain()
[all …]
Dnft_fib_inet.c19 struct nft_regs *regs, in nft_fib_inet_eval() argument
29 return nft_fib4_eval(expr, regs, pkt); in nft_fib_inet_eval()
31 return nft_fib4_eval_type(expr, regs, pkt); in nft_fib_inet_eval()
38 return nft_fib6_eval(expr, regs, pkt); in nft_fib_inet_eval()
40 return nft_fib6_eval_type(expr, regs, pkt); in nft_fib_inet_eval()
45 regs->verdict.code = NF_DROP; in nft_fib_inet_eval()
Dnft_fib_netdev.c24 struct nft_regs *regs, in nft_fib_netdev_eval() argument
34 return nft_fib4_eval(expr, regs, pkt); in nft_fib_netdev_eval()
36 return nft_fib4_eval_type(expr, regs, pkt); in nft_fib_netdev_eval()
43 return nft_fib6_eval(expr, regs, pkt); in nft_fib_netdev_eval()
45 return nft_fib6_eval_type(expr, regs, pkt); in nft_fib_netdev_eval()
50 regs->verdict.code = NFT_BREAK; in nft_fib_netdev_eval()
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 &regs->data[priv->sreg_proto_min]); in nft_nat_eval()
71 &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.c32 struct nft_regs *regs) in nft_dynset_new() argument
44 &regs->data[priv->sreg_key], in nft_dynset_new()
45 &regs->data[priv->sreg_data], in nft_dynset_new()
66 struct nft_regs *regs, in nft_dynset_eval() argument
75 if (set->ops->update(set, &regs->data[priv->sreg_key], nft_dynset_new, in nft_dynset_eval()
76 expr, regs, &ext)) { in nft_dynset_eval()
88 sexpr->ops->eval(sexpr, regs, pkt); in nft_dynset_eval()
91 regs->verdict.code = NFT_BREAK; in nft_dynset_eval()
96 regs->verdict.code = NFT_BREAK; in nft_dynset_eval()
Dnft_range.c27 struct nft_regs *regs, in nft_range_eval() argument
33 d1 = memcmp(&regs->data[priv->sreg], &priv->data_from, priv->len); in nft_range_eval()
34 d2 = memcmp(&regs->data[priv->sreg], &priv->data_to, priv->len); in nft_range_eval()
38 regs->verdict.code = NFT_BREAK; in nft_range_eval()
42 regs->verdict.code = NFT_BREAK; in nft_range_eval()
Dnft_quota.c36 struct nft_regs *regs, in nft_quota_do_eval() argument
40 regs->verdict.code = NFT_BREAK; in nft_quota_do_eval()
52 struct nft_regs *regs, in nft_quota_obj_eval() argument
60 regs->verdict.code = NFT_BREAK; in nft_quota_obj_eval()
172 struct nft_regs *regs, in nft_quota_eval() argument
177 nft_quota_do_eval(priv, regs, pkt); in nft_quota_eval()
Dnft_objref.c20 struct nft_regs *regs, in nft_objref_eval() argument
25 obj->ops->eval(obj, regs, pkt); in nft_objref_eval()
92 struct nft_regs *regs, in nft_objref_map_eval() argument
101 found = set->ops->lookup(nft_net(pkt), set, &regs->data[priv->sreg], in nft_objref_map_eval()
104 regs->verdict.code = NFT_BREAK; in nft_objref_map_eval()
108 obj->ops->eval(obj, regs, pkt); in nft_objref_map_eval()
Dnft_limit.c133 struct nft_regs *regs, in nft_limit_pkts_eval() argument
139 regs->verdict.code = NFT_BREAK; in nft_limit_pkts_eval()
182 struct nft_regs *regs, in nft_limit_bytes_eval() argument
189 regs->verdict.code = NFT_BREAK; in nft_limit_bytes_eval()
243 struct nft_regs *regs, in nft_limit_obj_pkts_eval() argument
249 regs->verdict.code = NFT_BREAK; in nft_limit_obj_pkts_eval()
286 struct nft_regs *regs, in nft_limit_obj_bytes_eval() argument
293 regs->verdict.code = NFT_BREAK; in nft_limit_obj_bytes_eval()
Dnft_compat.c90 struct nft_regs *regs, in nft_target_eval_xt() argument
107 regs->verdict.code = NFT_CONTINUE; in nft_target_eval_xt()
110 regs->verdict.code = ret; in nft_target_eval_xt()
116 struct nft_regs *regs, in nft_target_eval_bridge() argument
133 regs->verdict.code = NF_ACCEPT; in nft_target_eval_bridge()
136 regs->verdict.code = NF_DROP; in nft_target_eval_bridge()
139 regs->verdict.code = NFT_CONTINUE; in nft_target_eval_bridge()
142 regs->verdict.code = NFT_RETURN; in nft_target_eval_bridge()
145 regs->verdict.code = ret; in nft_target_eval_bridge()
355 struct nft_regs *regs, in __nft_match_eval() argument
[all …]
Dnft_queue.c32 struct nft_regs *regs, in nft_queue_eval() argument
55 regs->verdict.code = ret; in nft_queue_eval()
59 struct nft_regs *regs, in nft_queue_sreg_eval() argument
65 queue = regs->data[priv->sreg_qnum]; in nft_queue_sreg_eval()
71 regs->verdict.code = ret; in nft_queue_sreg_eval()
Dnft_ct.c59 struct nft_regs *regs, in nft_ct_get_eval() argument
63 u32 *dest = &regs->data[priv->dreg]; in nft_ct_get_eval()
204 regs->verdict.code = NFT_BREAK; in nft_ct_get_eval()
209 struct nft_regs *regs, in nft_ct_set_zone_eval() argument
216 u16 value = nft_reg_load16(&regs->data[priv->sreg]); in nft_ct_set_zone_eval()
244 regs->verdict.code = NF_DROP; in nft_ct_set_zone_eval()
255 struct nft_regs *regs, in nft_ct_set_eval() argument
261 u32 value = regs->data[priv->sreg]; in nft_ct_set_eval()
282 &regs->data[priv->sreg], in nft_ct_set_eval()
283 &regs->data[priv->sreg], in nft_ct_set_eval()
[all …]
Dnft_exthdr.c41 struct nft_regs *regs, in nft_exthdr_ipv6_eval() argument
45 u32 *dest = &regs->data[priv->dreg]; in nft_exthdr_ipv6_eval()
63 regs->verdict.code = NFT_BREAK; in nft_exthdr_ipv6_eval()
87 struct nft_regs *regs, in nft_exthdr_tcp_eval() argument
93 u32 *dest = &regs->data[priv->dreg]; in nft_exthdr_tcp_eval()
126 regs->verdict.code = NFT_BREAK; in nft_exthdr_tcp_eval()
130 struct nft_regs *regs, in nft_exthdr_tcp_set_eval() argument
168 src = regs->data[priv->sreg]; in nft_exthdr_tcp_set_eval()
Dnft_hash.c31 struct nft_regs *regs, in nft_jhash_eval() argument
35 const void *data = &regs->data[priv->sreg]; in nft_jhash_eval()
39 regs->data[priv->dreg] = h + priv->offset; in nft_jhash_eval()
49 struct nft_regs *regs, in nft_symhash_eval() argument
58 regs->data[priv->dreg] = h + priv->offset; in nft_symhash_eval()
Dnft_fwd_netdev.c23 struct nft_regs *regs, in nft_fwd_netdev_eval() argument
27 int oif = regs->data[priv->sreg_dev]; in nft_fwd_netdev_eval()
30 regs->verdict.code = NF_STOLEN; in nft_fwd_netdev_eval()
Dnft_lookup.c30 struct nft_regs *regs, in nft_lookup_eval() argument
38 found = set->ops->lookup(nft_net(pkt), set, &regs->data[priv->sreg], in nft_lookup_eval()
41 regs->verdict.code = NFT_BREAK; in nft_lookup_eval()
46 nft_data_copy(&regs->data[priv->dreg], in nft_lookup_eval()
Dnft_counter.c32 struct nft_regs *regs, in nft_counter_do_eval() argument
52 struct nft_regs *regs, in nft_counter_obj_eval() argument
57 nft_counter_do_eval(priv, regs, pkt); in nft_counter_obj_eval()
197 struct nft_regs *regs, in nft_counter_eval() argument
202 nft_counter_do_eval(priv, regs, pkt); in nft_counter_eval()
/net/ipv4/netfilter/
Dnft_masq_ipv4.c20 struct nft_regs *regs, in nft_masq_ipv4_eval() argument
30 &regs->data[priv->sreg_proto_min]); in nft_masq_ipv4_eval()
32 &regs->data[priv->sreg_proto_max]); in nft_masq_ipv4_eval()
34 regs->verdict.code = nf_nat_masquerade_ipv4(pkt->skb, nft_hook(pkt), in nft_masq_ipv4_eval()
Dnft_redir_ipv4.c21 struct nft_regs *regs, in nft_redir_ipv4_eval() argument
30 &regs->data[priv->sreg_proto_min]); in nft_redir_ipv4_eval()
32 &regs->data[priv->sreg_proto_max]); in nft_redir_ipv4_eval()
38 regs->verdict.code = nf_nat_redirect_ipv4(pkt->skb, &mr, nft_hook(pkt)); in nft_redir_ipv4_eval()
Dnft_fib_ipv4.c31 void nft_fib4_eval_type(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib4_eval_type() argument
36 u32 *dst = &regs->data[priv->dreg]; in nft_fib4_eval_type()
48 regs->verdict.code = NFT_BREAK; in nft_fib4_eval_type()
66 void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib4_eval() argument
71 u32 *dest = &regs->data[priv->dreg]; in nft_fib4_eval()
107 regs->verdict.code = NFT_BREAK; in nft_fib4_eval()
/net/ipv6/netfilter/
Dnft_redir_ipv6.c21 struct nft_regs *regs, in nft_redir_ipv6_eval() argument
30 &regs->data[priv->sreg_proto_min]); in nft_redir_ipv6_eval()
32 &regs->data[priv->sreg_proto_max]); in nft_redir_ipv6_eval()
38 regs->verdict.code = in nft_redir_ipv6_eval()
Dnft_masq_ipv6.c21 struct nft_regs *regs, in nft_masq_ipv6_eval() argument
31 &regs->data[priv->sreg_proto_min]); in nft_masq_ipv6_eval()
33 &regs->data[priv->sreg_proto_max]); in nft_masq_ipv6_eval()
35 regs->verdict.code = nf_nat_masquerade_ipv6(pkt->skb, &range, in nft_masq_ipv6_eval()
Dnft_fib_ipv6.c131 void nft_fib6_eval_type(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib6_eval_type() argument
136 u32 *dest = &regs->data[priv->dreg]; in nft_fib6_eval_type()
141 regs->verdict.code = NFT_BREAK; in nft_fib6_eval_type()
149 void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib6_eval() argument
155 u32 *dest = &regs->data[priv->dreg]; in nft_fib6_eval()
171 regs->verdict.code = NFT_BREAK; in nft_fib6_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()
/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()

12