[openwrt/openwrt] netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_MASQUERADE

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 24 10:43:12 EDT 2020


yousong pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d1592306cc07b9003d554653fc7c53c9168effa7

commit d1592306cc07b9003d554653fc7c53c9168effa7
Author: Yousong Zhou <yszhou4tech at gmail.com>
AuthorDate: Fri Sep 25 22:59:04 2020 +0800

    netfilter.mk: use CONFIG_NETFILTER_XT_TARGET_MASQUERADE
    
    CONFIG_IP_NF_TARGET_MASQUERADE and its counterpart
    CONFIG_IP6_NF_TARGET_MASQUERADE are "backwards-compat option for the
    user's convenience"
    
    Related commit d22c1755 ("netfilter: fix NAT packaging with kernels
    5.2+")
    
    Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 include/netfilter.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/netfilter.mk b/include/netfilter.mk
index 5d6e3a0c98..2047dcc842 100644
--- a/include/netfilter.mk
+++ b/include/netfilter.mk
@@ -199,7 +199,7 @@ $(eval $(if $(NF_KMOD),,$(call nf_add,IPT_NAT,CONFIG_NF_NAT, ipt_SNAT ipt_DNAT))
 $(eval $(if $(NF_KMOD),,$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_TARGET_NPT, ip6t_DNPT ip6t_SNPT)))
 
 $(eval $(call nf_add,IPT_NAT,CONFIG_IP_NF_TARGET_MASQUERADE, $(P_V4)ipt_MASQUERADE, lt 5.2))
-$(eval $(call nf_add,IPT_NAT,CONFIG_IP_NF_TARGET_MASQUERADE, $(P_XT)xt_MASQUERADE, ge 5.2))
+$(eval $(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_TARGET_MASQUERADE, $(P_XT)xt_MASQUERADE, ge 5.2))
 $(eval $(call nf_add,IPT_NAT,CONFIG_IP_NF_TARGET_REDIRECT, $(P_XT)xt_REDIRECT))
 
 



More information about the lede-commits mailing list