Merge branch 'lsk-v4.4-eas-v5.2' of git://git.linaro.org/arm/eas/kernel.git
[firefly-linux-kernel-4.4.55.git] / include / net / netfilter / nft_redir.h
1 #ifndef _NFT_REDIR_H_
2 #define _NFT_REDIR_H_
3
4 struct nft_redir {
5         enum nft_registers      sreg_proto_min:8;
6         enum nft_registers      sreg_proto_max:8;
7         u16                     flags;
8 };
9
10 extern const struct nla_policy nft_redir_policy[];
11
12 int nft_redir_init(const struct nft_ctx *ctx,
13                    const struct nft_expr *expr,
14                    const struct nlattr * const tb[]);
15
16 int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr);
17
18 int nft_redir_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
19                        const struct nft_data **data);
20
21 #endif /* _NFT_REDIR_H_ */