1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <net/netfilter/nf_tables.h>
8 enum nft_meta_keys key:8;
16 extern const struct nla_policy nft_meta_policy[];
18 int nft_meta_get_init(const struct nft_ctx *ctx,
19 const struct nft_expr *expr,
20 const struct nlattr * const tb[]);
22 int nft_meta_set_init(const struct nft_ctx *ctx,
23 const struct nft_expr *expr,
24 const struct nlattr * const tb[]);
26 int nft_meta_get_dump(struct sk_buff *skb,
27 const struct nft_expr *expr, bool reset);
29 int nft_meta_set_dump(struct sk_buff *skb,
30 const struct nft_expr *expr, bool reset);
32 void nft_meta_get_eval(const struct nft_expr *expr,
33 struct nft_regs *regs,
34 const struct nft_pktinfo *pkt);
36 void nft_meta_set_eval(const struct nft_expr *expr,
37 struct nft_regs *regs,
38 const struct nft_pktinfo *pkt);
40 void nft_meta_set_destroy(const struct nft_ctx *ctx,
41 const struct nft_expr *expr);
43 int nft_meta_set_validate(const struct nft_ctx *ctx,
44 const struct nft_expr *expr,
45 const struct nft_data **data);
47 bool nft_meta_get_reduce(struct nft_regs_track *track,
48 const struct nft_expr *expr);
50 struct nft_inner_tun_ctx;
51 void nft_meta_inner_eval(const struct nft_expr *expr,
52 struct nft_regs *regs, const struct nft_pktinfo *pkt,
53 struct nft_inner_tun_ctx *tun_ctx);