mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Arturo Borrero](/assets/img/avatar_default.png)
This new expression provides NAT in the redirect flavour, which is to redirect packets to local machine. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
21 lines
549 B
C
21 lines
549 B
C
#ifndef _NFT_REDIR_H_
|
|
#define _NFT_REDIR_H_
|
|
|
|
struct nft_redir {
|
|
enum nft_registers sreg_proto_min:8;
|
|
enum nft_registers sreg_proto_max:8;
|
|
u16 flags;
|
|
};
|
|
|
|
extern const struct nla_policy nft_redir_policy[];
|
|
|
|
int nft_redir_init(const struct nft_ctx *ctx,
|
|
const struct nft_expr *expr,
|
|
const struct nlattr * const tb[]);
|
|
|
|
int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr);
|
|
|
|
int nft_redir_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
|
|
const struct nft_data **data);
|
|
|
|
#endif /* _NFT_REDIR_H_ */
|