History

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.

Arturo Borrero committed 12 years ago

Commit 9ba1f721 parent be6b63511 files · +288 −0Browse files

Showing the changes to include/uapi/linux (1 of 11 files). Show all

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+11−0
@@ -800,4 +800,15 @@ enum nft_nat_attributes { · 799 unmodified lines
800800 };
801801 #define NFTA_NAT_MAX (__NFTA_NAT_MAX - 1)
802802
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+
803814 #endif /* _LINUX_NF_TABLES_H */