Home
last modified time | relevance | path

Searched refs:nft_expr (Results 1 – 22 of 22) sorted by relevance

/linux/include/net/netfilter/
H A Dnf_tables_core.h129 struct nft_expr;
132 void nft_meta_get_eval(const struct nft_expr *expr,
134 void nft_cmp_eval(const struct nft_expr *expr,
136 void nft_lookup_eval(const struct nft_expr *expr,
138 void nft_payload_eval(const struct nft_expr *expr,
140 void nft_immediate_eval(const struct nft_expr *expr,
142 void nft_bitwise_eval(const struct nft_expr *expr,
144 void nft_range_eval(const struct nft_expr *expr,
146 void nft_byteorder_eval(const struct nft_expr *expr,
148 void nft_dynset_eval(const struct nft_expr *expr,
[all …]
H A Dnf_tables.h400 #define NFT_EXPR_SIZE(size) (sizeof(struct nft_expr) + \
401 ALIGN(size, __alignof__(struct nft_expr)))
409 struct nft_expr { struct
415 static inline void *nft_expr_priv(const struct nft_expr *expr) in nft_expr_priv() argument
424 int nft_expr_clone(struct nft_expr *dst, struct nft_expr *src, gfp_t gfp);
425 void nft_expr_destroy(const struct nft_ctx *ctx, struct nft_expr *expr);
427 const struct nft_expr *expr, bool reset);
467 const struct nft_expr *expr,
531 __attribute__((aligned(__alignof__(struct nft_expr))));
535 ((struct nft_expr *)&__elem_expr->data[__offset])
[all …]
H A Dnft_reject.h18 const struct nft_expr *expr);
21 const struct nft_expr *expr,
25 const struct nft_expr *expr, bool reset);
/linux/net/netfilter/
H A Dnft_fwd_netdev.c24 static void nft_fwd_netdev_eval(const struct nft_expr *expr, in nft_fwd_netdev_eval()
47 const struct nft_expr *expr, in nft_fwd_netdev_init()
60 const struct nft_expr *expr, bool reset) in nft_fwd_netdev_dump()
75 const struct nft_expr *expr) in nft_fwd_netdev_offload()
83 static bool nft_fwd_netdev_offload_action(const struct nft_expr *expr) in nft_fwd_netdev_offload_action()
94 static void nft_fwd_neigh_eval(const struct nft_expr *expr, in nft_fwd_neigh_eval()
190 const struct nft_expr *expr, in nft_fwd_neigh_init()
225 const struct nft_expr *expr, bool reset) in nft_fwd_neigh_dump()
241 const struct nft_expr *expr) in nft_fwd_validate()
H A Dnft_dynset.c25 struct nft_expr *expr_array[NFT_SET_EXPR_MAX];
37 struct nft_expr *expr; in nft_dynset_expr_setup()
56 const struct nft_expr *expr, in nft_dynset_new()
89 void nft_dynset_eval(const struct nft_expr *expr, in nft_dynset_eval()
134 static struct nft_expr *
138 struct nft_expr *expr; in nft_dynset_expr_alloc()
172 const struct nft_expr *expr, in nft_dynset_init()
251 struct nft_expr *dynset_expr; in nft_dynset_init()
268 struct nft_expr *dynset_expr; in nft_dynset_init()
348 const struct nft_expr *expr, in nft_dynset_deactivate()
[all …]
H A Dnft_compat.c73 static void nft_target_eval_xt(const struct nft_expr *expr, in nft_target_eval_xt()
100 static void nft_target_eval_bridge(const struct nft_expr *expr, in nft_target_eval_bridge()
244 nft_target_init(const struct nft_ctx *ctx, const struct nft_expr *expr, in nft_target_init()
293 static void __nft_mt_tg_destroy(struct module *me, const struct nft_expr *expr) in __nft_mt_tg_destroy()
300 nft_target_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) in nft_target_destroy()
336 const struct nft_expr *expr, bool reset) in nft_target_dump()
354 const struct nft_expr *expr) in nft_target_validate()
400 static void __nft_match_eval(const struct nft_expr *expr, in __nft_match_eval()
429 static void nft_match_large_eval(const struct nft_expr *expr, in nft_match_large_eval()
438 static void nft_match_eval(const struct nft_expr *expr, in nft_match_eval()
[all …]
H A Dnft_exthdr.c46 static void nft_exthdr_ipv6_eval(const struct nft_expr *expr, in nft_exthdr_ipv6_eval()
139 static void nft_exthdr_ipv4_eval(const struct nft_expr *expr, in nft_exthdr_ipv4_eval()
188 static void nft_exthdr_tcp_eval(const struct nft_expr *expr, in nft_exthdr_tcp_eval()
232 static void nft_exthdr_tcp_set_eval(const struct nft_expr *expr, in nft_exthdr_tcp_set_eval()
312 static void nft_exthdr_tcp_strip_eval(const struct nft_expr *expr, in nft_exthdr_tcp_strip_eval()
369 static void nft_exthdr_sctp_eval(const struct nft_expr *expr, in nft_exthdr_sctp_eval()
411 static void nft_exthdr_dccp_eval(const struct nft_expr *expr, in nft_exthdr_dccp_eval()
499 const struct nft_expr *expr, in nft_exthdr_init()
550 const struct nft_expr *expr, in nft_exthdr_tcp_set_init()
599 const struct nft_expr *exp in nft_exthdr_tcp_strip_init()
[all...]
H A Dnft_tproxy.c21 static void nft_tproxy_eval_v4(const struct nft_expr *expr, in nft_tproxy_eval_v4()
84 static void nft_tproxy_eval_v6(const struct nft_expr *expr, in nft_tproxy_eval_v6()
157 static void nft_tproxy_eval(const struct nft_expr *expr, in nft_tproxy_eval()
192 const struct nft_expr *expr, in nft_tproxy_init()
274 const struct nft_expr *expr) in nft_tproxy_destroy()
297 const struct nft_expr *expr, bool reset) in nft_tproxy_dump()
316 const struct nft_expr *expr) in nft_tproxy_validate()
H A Dnf_tables_core.c74 static void nft_bitwise_fast_eval(const struct nft_expr *expr, in nft_bitwise_fast_eval()
84 static void nft_cmp_fast_eval(const struct nft_expr *expr, in nft_cmp_fast_eval()
94 static void nft_cmp16_fast_eval(const struct nft_expr *expr, in nft_cmp16_fast_eval()
144 static bool nft_payload_fast_eval(const struct nft_expr *expr, in nft_payload_fast_eval()
203 static void expr_call_ops_eval(const struct nft_expr *expr, in expr_call_ops_eval()
240 #define nft_rule_expr_first(rule) (struct nft_expr *)&rule->data[0]
242 #define nft_rule_expr_last(rule) (struct nft_expr *)&rule->data[rule->dlen]
254 const struct nft_expr *expr, *last; in nft_do_chain()
H A Dnft_inner.c35 /* Same layout as nft_expr but it embeds the private expression data area. */
290 static void nft_inner_eval(const struct nft_expr *expr, struct nft_regs *regs, in nft_inner_eval()
305 nft_payload_inner_eval((struct nft_expr *)&priv->expr, regs, pkt, &tun_ctx); in nft_inner_eval()
308 nft_meta_inner_eval((struct nft_expr *)&priv->expr, regs, pkt, &tun_ctx); in nft_inner_eval()
336 const struct nft_expr *expr, in nft_inner_init()
387 err = expr_info.ops->init(ctx, (struct nft_expr *)&priv->expr, in nft_inner_init()
396 const struct nft_expr *expr, bool reset) in nft_inner_dump()
407 (struct nft_expr *)&priv->expr, reset) < 0) in nft_inner_dump()
H A Dnft_osf.c20 static void nft_osf_eval(const struct nft_expr *expr, struct nft_regs *regs, in nft_osf_eval()
66 const struct nft_expr *expr, in nft_osf_init()
96 const struct nft_expr *expr, bool reset) in nft_osf_dump()
116 const struct nft_expr *expr) in nft_osf_validate()
H A Dnft_reject.c27 const struct nft_expr *expr) in nft_reject_validate()
38 const struct nft_expr *expr, in nft_reject_init()
72 const struct nft_expr *expr, bool reset) in nft_reject_dump()
H A Dnft_bitwise.c95 void nft_bitwise_eval(const struct nft_expr *expr, in nft_bitwise_eval()
251 const struct nft_expr *expr, in nft_bitwise_init()
352 const struct nft_expr *expr, bool reset) in nft_bitwise_dump()
388 const struct nft_expr *expr) in nft_bitwise_offload()
435 const struct nft_expr *expr, in nft_bitwise_fast_init()
472 const struct nft_expr *expr, bool reset) in nft_bitwise_fast_dump()
501 const struct nft_expr *expr) in nft_bitwise_fast_offload()
H A Dnft_byteorder.c25 void nft_byteorder_eval(const struct nft_expr *expr, in nft_byteorder_eval()
84 const struct nft_expr *expr, in nft_byteorder_init()
148 const struct nft_expr *expr, bool reset) in nft_byteorder_dump()
H A Dnft_payload.c159 void nft_payload_eval(const struct nft_expr *expr, in nft_payload_eval()
223 const struct nft_expr *expr, in nft_payload_init()
238 const struct nft_expr *expr, bool reset) in nft_payload_dump()
528 const struct nft_expr *expr) in nft_payload_offload()
568 void nft_payload_inner_eval(const struct nft_expr *expr, struct nft_regs *regs, in nft_payload_inner_eval()
620 const struct nft_expr *expr, in nft_payload_inner_init()
827 static void nft_payload_set_eval(const struct nft_expr *expr, in nft_payload_set_eval()
913 const struct nft_expr *expr, in nft_payload_set_init()
972 const struct nft_expr *expr, bool reset) in nft_payload_set_dump()
H A Dnft_ct.c52 static void nft_ct_get_eval(const struct nft_expr *expr, in nft_ct_get_eval()
223 static void nft_ct_set_zone_eval(const struct nft_expr *expr, in nft_ct_set_zone_eval()
274 static void nft_ct_set_eval(const struct nft_expr *expr, in nft_ct_set_eval()
391 const struct nft_expr *expr, in nft_ct_get_init()
558 const struct nft_expr *expr, in nft_ct_set_init()
644 const struct nft_expr *expr) in nft_ct_get_destroy()
653 const struct nft_expr *expr) in nft_ct_set_destroy()
662 const struct nft_expr *expr, bool reset) in nft_ct_get_dump()
702 const struct nft_expr *expr, bool reset) in nft_ct_set_dump()
813 static void nft_notrack_eval(const struct nft_expr *exp
[all...]
H A Dnft_ct_fast.c7 void nft_ct_get_fast_eval(const struct nft_expr *expr, in nft_ct_get_fast_eval()
H A Dnft_tunnel.c23 static void nft_tunnel_get_eval(const struct nft_expr *expr, in nft_tunnel_get_eval()
75 const struct nft_expr *expr, in nft_tunnel_get_init()
111 const struct nft_expr *expr, bool reset) in nft_tunnel_get_dump()
H A Dnf_tables_api.c693 struct nft_expr *expr; in nft_rule_expr_activate()
707 struct nft_expr *expr; in nft_rule_expr_deactivate()
3477 const struct nft_expr *expr, bool reset) in nf_tables_fill_expr_info()
3499 const struct nft_expr *expr, bool reset) in nft_expr_dump()
3626 struct nft_expr *expr) in nf_tables_newexpr()
3645 struct nft_expr *expr) in nf_tables_expr_destroy()
3654 static struct nft_expr *nft_expr_init(const struct nft_ctx *ctx, in nft_expr_init()
3658 struct nft_expr *expr; in nft_expr_init()
3692 int nft_expr_clone(struct nft_expr *dst, struct nft_expr *sr in nft_expr_clone()
[all...]
H A Dnf_tables_offload.c94 struct nft_expr *expr; in nft_flow_rule_create()
302 struct nft_expr *expr, *next; in nft_flow_rule_stats()
H A Dnft_set_hash.c127 const struct nft_expr *expr, struct nft_regs *regs) in nft_rhash_update()
397 struct nft_expr *expr; in nft_rhash_expr_needs_gc_run()
/linux/net/ipv6/netfilter/
H A Dnft_fib_ipv6.c127 void nft_fib6_eval_type(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib6_eval_type()
202 void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs, in nft_fib6_eval()