summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-07-31 16:39:58 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-07-31 16:39:58 +0000
commitfcaf5b546901cf0c25ed6c359de546777fff3af4 (patch)
tree886460353df475c3d8618717fd37e384f87172eb
parent241ab4e10cde1ae6b5b775186ee94fa19042159c (diff)
downloadmtk-20170518-fcaf5b546901cf0c25ed6c359de546777fff3af4.zip
mtk-20170518-fcaf5b546901cf0c25ed6c359de546777fff3af4.tar.gz
mtk-20170518-fcaf5b546901cf0c25ed6c359de546777fff3af4.tar.bz2
don't try to package ipt_SNAT and ipt_DNAT when making kernel module packages
SVN-Revision: 4354
-rw-r--r--openwrt/include/netfilter.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/openwrt/include/netfilter.mk b/openwrt/include/netfilter.mk
index d4ec0f3..ba1512e 100644
--- a/openwrt/include/netfilter.mk
+++ b/openwrt/include/netfilter.mk
@@ -77,7 +77,9 @@ IPT_IPSEC-$(CONFIG_IP_NF_MATCH_AH) += $(P_V4)ipt_ah
IPT_IPSEC-$(CONFIG_NETFILTER_XT_MATCH_ESP) += $(P_XT)xt_esp
IPT_NAT-m :=
-IPT_NAT-$(CONFIG_IP_NF_NAT) += $(P_V4)ipt_SNAT $(P_V4)ipt_DNAT
+ifneq ($(NF_KMOD),1)
+ IPT_NAT-$(CONFIG_IP_NF_NAT) += $(P_V4)ipt_SNAT $(P_V4)ipt_DNAT
+endif
IPT_NAT-$(CONFIG_IP_NF_TARGET_MASQUERADE) += $(P_V4)ipt_MASQUERADE
IPT_NAT-$(CONFIG_IP_NF_TARGET_MIRROR) += $(P_V4)ipt_MIRROR
IPT_NAT-$(CONFIG_IP_NF_TARGET_REDIRECT) += $(P_V4)ipt_REDIRECT