blob: a3f3c11b2526efbaa88fb5857364a4e78618365e [file] [log] [blame]
Arturo Borrero9ba1f7262014-09-08 13:45:00 +02001#ifndef _NFT_MASQ_H_
2#define _NFT_MASQ_H_
3
4struct nft_masq {
Pablo Neira Ayuso8a6bf5d2016-03-01 19:55:14 +01005 u32 flags;
6 enum nft_registers sreg_proto_min:8;
7 enum nft_registers sreg_proto_max:8;
Arturo Borrero9ba1f7262014-09-08 13:45:00 +02008};
9
10extern const struct nla_policy nft_masq_policy[];
11
12int nft_masq_init(const struct nft_ctx *ctx,
13 const struct nft_expr *expr,
14 const struct nlattr * const tb[]);
15
16int nft_masq_dump(struct sk_buff *skb, const struct nft_expr *expr);
17
Pablo Neira Ayuso7210e4e2014-10-13 19:50:22 +020018int nft_masq_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
19 const struct nft_data **data);
20
Arturo Borrero9ba1f7262014-09-08 13:45:00 +020021#endif /* _NFT_MASQ_H_ */