diff options
| author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-09-08 07:45:00 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-09 10:31:30 -0400 |
| commit | 9ba1f726bec090399eb9bb9157eb32dedc8e8c45 (patch) | |
| tree | 4a2875982feb3cad10ccb8f3da4a1f452bd1f068 /include/uapi/linux | |
| parent | be6b635cd674add9410efa9ac6f03e0040848b12 (diff) | |
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/uapi/linux')
| -rw-r--r-- | include/uapi/linux/netfilter/nf_tables.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h index 6022c6e6be18..eeec0ae845ef 100644 --- a/include/uapi/linux/netfilter/nf_tables.h +++ b/include/uapi/linux/netfilter/nf_tables.h | |||
| @@ -800,4 +800,15 @@ enum nft_nat_attributes { | |||
| 800 | }; | 800 | }; |
| 801 | #define NFTA_NAT_MAX (__NFTA_NAT_MAX - 1) | 801 | #define NFTA_NAT_MAX (__NFTA_NAT_MAX - 1) |
| 802 | 802 | ||
| 803 | /** | ||
| 804 | * enum nft_masq_attributes - nf_tables masquerade expression attributes | ||
| 805 | * | ||
| 806 | * @NFTA_MASQ_FLAGS: NAT flags (see NF_NAT_RANGE_* in linux/netfilter/nf_nat.h) (NLA_U32) | ||
| 807 | */ | ||
| 808 | enum nft_masq_attributes { | ||
| 809 | NFTA_MASQ_FLAGS, | ||
| 810 | __NFTA_MASQ_MAX | ||
| 811 | }; | ||
| 812 | #define NFTA_MASQ_MAX (__NFTA_MASQ_MAX - 1) | ||
| 813 | |||
| 803 | #endif /* _LINUX_NF_TABLES_H */ | 814 | #endif /* _LINUX_NF_TABLES_H */ |
