/net/netfilter/ |
D | nf_tables_core.c | 75 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 = ®s->data[priv->dreg]; in nft_payload_fast_eval() 153 struct nft_regs regs; in nft_do_chain() local 162 nft_trace_init(&info, pkt, ®s.verdict, basechain); in nft_do_chain() 167 regs.verdict.code = NFT_CONTINUE; in nft_do_chain() 178 nft_cmp_fast_eval(expr, ®s); in nft_do_chain() 180 !nft_payload_fast_eval(expr, ®s, pkt)) in nft_do_chain() [all …]
|
D | nft_fib_inet.c | 19 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()
|
D | nft_fib_netdev.c | 24 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()
|
D | nft_nat.c | 40 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 ®s->data[priv->sreg_addr_min], in nft_nat_eval() 61 ®s->data[priv->sreg_addr_max], in nft_nat_eval() 69 ®s->data[priv->sreg_proto_min]); in nft_nat_eval() 71 ®s->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()
|
D | nft_dynset.c | 32 struct nft_regs *regs) in nft_dynset_new() argument 44 ®s->data[priv->sreg_key], in nft_dynset_new() 45 ®s->data[priv->sreg_data], in nft_dynset_new() 66 struct nft_regs *regs, in nft_dynset_eval() argument 75 if (set->ops->update(set, ®s->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()
|
D | nft_range.c | 27 struct nft_regs *regs, in nft_range_eval() argument 33 d1 = memcmp(®s->data[priv->sreg], &priv->data_from, priv->len); in nft_range_eval() 34 d2 = memcmp(®s->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()
|
D | nft_quota.c | 36 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()
|
D | nft_objref.c | 20 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, ®s->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()
|
D | nft_limit.c | 133 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()
|
D | nft_compat.c | 90 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 …]
|
D | nft_queue.c | 32 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()
|
D | nft_ct.c | 59 struct nft_regs *regs, in nft_ct_get_eval() argument 63 u32 *dest = ®s->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(®s->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 ®s->data[priv->sreg], in nft_ct_set_eval() 283 ®s->data[priv->sreg], in nft_ct_set_eval() [all …]
|
D | nft_exthdr.c | 41 struct nft_regs *regs, in nft_exthdr_ipv6_eval() argument 45 u32 *dest = ®s->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 = ®s->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()
|
D | nft_hash.c | 31 struct nft_regs *regs, in nft_jhash_eval() argument 35 const void *data = ®s->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()
|
D | nft_fwd_netdev.c | 23 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()
|
D | nft_lookup.c | 30 struct nft_regs *regs, in nft_lookup_eval() argument 38 found = set->ops->lookup(nft_net(pkt), set, ®s->data[priv->sreg], in nft_lookup_eval() 41 regs->verdict.code = NFT_BREAK; in nft_lookup_eval() 46 nft_data_copy(®s->data[priv->dreg], in nft_lookup_eval()
|
D | nft_counter.c | 32 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/ |
D | nft_masq_ipv4.c | 20 struct nft_regs *regs, in nft_masq_ipv4_eval() argument 30 ®s->data[priv->sreg_proto_min]); in nft_masq_ipv4_eval() 32 ®s->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()
|
D | nft_redir_ipv4.c | 21 struct nft_regs *regs, in nft_redir_ipv4_eval() argument 30 ®s->data[priv->sreg_proto_min]); in nft_redir_ipv4_eval() 32 ®s->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()
|
D | nft_fib_ipv4.c | 31 void nft_fib4_eval_type(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib4_eval_type() argument 36 u32 *dst = ®s->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 = ®s->data[priv->dreg]; in nft_fib4_eval() 107 regs->verdict.code = NFT_BREAK; in nft_fib4_eval()
|
/net/ipv6/netfilter/ |
D | nft_redir_ipv6.c | 21 struct nft_regs *regs, in nft_redir_ipv6_eval() argument 30 ®s->data[priv->sreg_proto_min]); in nft_redir_ipv6_eval() 32 ®s->data[priv->sreg_proto_max]); in nft_redir_ipv6_eval() 38 regs->verdict.code = in nft_redir_ipv6_eval()
|
D | nft_masq_ipv6.c | 21 struct nft_regs *regs, in nft_masq_ipv6_eval() argument 31 ®s->data[priv->sreg_proto_min]); in nft_masq_ipv6_eval() 33 ®s->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()
|
D | nft_fib_ipv6.c | 131 void nft_fib6_eval_type(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib6_eval_type() argument 136 u32 *dest = ®s->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 = ®s->data[priv->dreg]; in nft_fib6_eval() 171 regs->verdict.code = NFT_BREAK; in nft_fib6_eval()
|
D | nft_dup_ipv6.c | 24 struct nft_regs *regs, in nft_dup_ipv6_eval() argument 28 struct in6_addr *gw = (struct in6_addr *)®s->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/ |
D | nft_meta_bridge.c | 22 struct nft_regs *regs, in nft_meta_bridge_get_eval() argument 27 u32 *dest = ®s->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()
|