1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NFT_REDIR_H_
3 #define _NFT_REDIR_H_
4 
5 struct nft_redir {
6 	u8			sreg_proto_min;
7 	u8			sreg_proto_max;
8 	u16			flags;
9 };
10 
11 extern const struct nla_policy nft_redir_policy[];
12 
13 int nft_redir_init(const struct nft_ctx *ctx,
14 		   const struct nft_expr *expr,
15 		   const struct nlattr * const tb[]);
16 
17 int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr);
18 
19 int nft_redir_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
20 		       const struct nft_data **data);
21 
22 #endif /* _NFT_REDIR_H_ */
23