swh:1:snp:32555a3fd8878f019c2ebd6c964bc1edcaeff337
Raw File
Tip revision: 0b07194bb55ed836c2cc7c22e866b87a14681984 authored by Linus Torvalds on 29 October 2017, 20:58:38 UTC
Linux 4.14-rc7
Tip revision: 0b07194
nft_redir.h
#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_ */
back to top