summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-01-14 16:12:56 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-01-14 16:12:56 +0000
commit03a50b908710fe5450251c3a0440ef08b437b844 (patch)
tree0b4d00b9e28ac750785dd3dcdc229eaaf14192c3
parente0e3509b5ce2ccf93d4d67ea907613f5f7ec2eed (diff)
downloadmtk-20170518-03a50b908710fe5450251c3a0440ef08b437b844.zip
mtk-20170518-03a50b908710fe5450251c3a0440ef08b437b844.tar.gz
mtk-20170518-03a50b908710fe5450251c3a0440ef08b437b844.tar.bz2
netfilter.mk: add addrtype match to iptables-mod-extra (kmod-ipt-extra)
SVN-Revision: 35155
-rw-r--r--include/netfilter.mk3
-rw-r--r--package/kernel/modules/netfilter.mk1
-rw-r--r--package/network/utils/iptables/Makefile1
3 files changed, 3 insertions, 2 deletions
diff --git a/include/netfilter.mk b/include/netfilter.mk
index 86f35e5..1d89e6d 100644
--- a/include/netfilter.mk
+++ b/include/netfilter.mk
@@ -76,8 +76,7 @@ $(eval $(if $(NF_KMOD),,$(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_TA
# extra
-# kernel only
-
+$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_ADDRTYPE, $(if $(NF_KMOD),$(P_XT)xt_addrtype,$(P_XT)ipt_addrtype)))
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_OWNER, $(P_XT)xt_owner))
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_PHYSDEV, $(P_XT)xt_physdev))
$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_PKTTYPE, $(P_XT)xt_pkttype))
diff --git a/package/kernel/modules/netfilter.mk b/package/kernel/modules/netfilter.mk
index b739a9c..69bdba0 100644
--- a/package/kernel/modules/netfilter.mk
+++ b/package/kernel/modules/netfilter.mk
@@ -377,6 +377,7 @@ endef
define KernelPackage/ipt-extra/description
Other Netfilter (IPv4) kernel modules
Includes:
+ - addrtype
- owner
- physdev (if bridge support was enabled in kernel)
- pkttype
diff --git a/package/network/utils/iptables/Makefile b/package/network/utils/iptables/Makefile
index a3d8864..b9045b1 100644
--- a/package/network/utils/iptables/Makefile
+++ b/package/network/utils/iptables/Makefile
@@ -234,6 +234,7 @@ define Package/iptables-mod-extra/description
Other extra iptables extensions.
Matches:
+ - addrtype
- condition
- owner
- physdev (if ebtables is enabled)