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.
Showing the changes to include/uapi/linux (1 of 11 files). Show all
Unified · Split
| @@ -800,4 +800,15 @@ enum nft_nat_attributes { · 799 unmodified lines | ||
| 800 | 800 | }; |
| 801 | 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 | 814 | #endif /* _LINUX_NF_TABLES_H */ |