mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-19 19:20:58 -04:00
netfilter: nft_masq: support port range
Complete masquerading support by allowing port range selection. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
af4610c395
commit
8a6bf5da1a
5 changed files with 59 additions and 14 deletions
|
|
@ -951,10 +951,14 @@ enum nft_nat_attributes {
|
|||
* enum nft_masq_attributes - nf_tables masquerade expression attributes
|
||||
*
|
||||
* @NFTA_MASQ_FLAGS: NAT flags (see NF_NAT_RANGE_* in linux/netfilter/nf_nat.h) (NLA_U32)
|
||||
* @NFTA_MASQ_REG_PROTO_MIN: source register of proto range start (NLA_U32: nft_registers)
|
||||
* @NFTA_MASQ_REG_PROTO_MAX: source register of proto range end (NLA_U32: nft_registers)
|
||||
*/
|
||||
enum nft_masq_attributes {
|
||||
NFTA_MASQ_UNSPEC,
|
||||
NFTA_MASQ_FLAGS,
|
||||
NFTA_MASQ_REG_PROTO_MIN,
|
||||
NFTA_MASQ_REG_PROTO_MAX,
|
||||
__NFTA_MASQ_MAX
|
||||
};
|
||||
#define NFTA_MASQ_MAX (__NFTA_MASQ_MAX - 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue