1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _NFT_REDIR_H_ 3#define _NFT_REDIR_H_ 4 5struct nft_redir { 6 enum nft_registers sreg_proto_min:8; 7 enum nft_registers sreg_proto_max:8; 8 u16 flags; 9}; 10 11extern const struct nla_policy nft_redir_policy[]; 12 13int nft_redir_init(const struct nft_ctx *ctx, 14 const struct nft_expr *expr, 15 const struct nlattr * const tb[]); 16 17int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr); 18 19int 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