diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-09-08 11:45:00 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-09 14:31:30 (GMT) |
commit | 9ba1f726bec090399eb9bb9157eb32dedc8e8c45 (patch) | |
tree | 4a2875982feb3cad10ccb8f3da4a1f452bd1f068 /include/net/netfilter | |
parent | be6b635cd674add9410efa9ac6f03e0040848b12 (diff) | |
download | linux-9ba1f726bec090399eb9bb9157eb32dedc8e8c45.tar.xz |
netfilter: nf_tables: add new nft_masq expression
The nft_masq expression is intended to perform NAT in the masquerade flavour.
We decided to have the masquerade functionality in a separated expression other
than nft_nat.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r-- | include/net/netfilter/nft_masq.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/netfilter/nft_masq.h b/include/net/netfilter/nft_masq.h new file mode 100644 index 0000000..c72729f --- /dev/null +++ b/include/net/netfilter/nft_masq.h @@ -0,0 +1,16 @@ +#ifndef _NFT_MASQ_H_ +#define _NFT_MASQ_H_ + +struct nft_masq { + u32 flags; +}; + +extern const struct nla_policy nft_masq_policy[]; + +int nft_masq_init(const struct nft_ctx *ctx, + const struct nft_expr *expr, + const struct nlattr * const tb[]); + +int nft_masq_dump(struct sk_buff *skb, const struct nft_expr *expr); + +#endif /* _NFT_MASQ_H_ */ |