summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-16 06:15:07 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-16 06:15:07 +0000
commit3ba9b8e05c0558a59742760e7c696c5927eb9fea (patch)
tree70dd167d8629fa8f2786eb8de75c0c577ea8f573
parent5fbf6ca9e6af9be63bbd085f2feb3bcafe7d8dbc (diff)
[package] iptables: package hashlimit module (#6696)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22229 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/iptables/Makefile12
-rw-r--r--package/kernel/modules/netfilter.mk14
2 files changed, 26 insertions, 0 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index 87d898bea0..a401115de0 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -189,6 +189,17 @@ Includes:
- libipt_ULOG
endef
+define Package/iptables-mod-hashlimit
+$(call Package/iptables/Module, +kmod-ipt-hashlimit)
+ TITLE:=hashlimit matching
+endef
+
+define Package/iptables-mod-hashlimit/description
+iptables extensions for hashlimit matching
+Includes:
+- libxt_hashlimit
+endef
+
define Package/iptables-mod-iprange
$(call Package/iptables/Module, +kmod-ipt-iprange)
TITLE:=IP range extension
@@ -394,6 +405,7 @@ $(eval $(call BuildPlugin,iptables-mod-nat,$(IPT_NAT-m)))
$(eval $(call BuildPlugin,iptables-mod-nat-extra,$(IPT_NAT_EXTRA-m)))
$(eval $(call BuildPlugin,iptables-mod-iprange,$(IPT_IPRANGE-m)))
$(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
+$(eval $(call BuildPlugin,iptables-mod-hashlimit,$(IPT_HASHLIMIT-m)))
$(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m)))
$(eval $(call BuildPackage,ip6tables))
$(eval $(call BuildPackage,ip6tables-utils))
diff --git a/package/kernel/modules/netfilter.mk b/package/kernel/modules/netfilter.mk
index 561286efda..510c195d62 100644
--- a/package/kernel/modules/netfilter.mk
+++ b/package/kernel/modules/netfilter.mk
@@ -512,3 +512,17 @@ define KernelPackage/nf-conntrack-netlink/description
endef
$(eval $(call KernelPackage,nf-conntrack-netlink))
+
+define KernelPackage/ipt-hashlimit
+$(call KernelPackage/ipt/Depends,)
+ TITLE:=Netfilter hashlimit match
+ FILES:=$(LINUX_DIR)/net/netfilter/xt_hashlimit.$(LINUX_KMOD_SUFFIX)
+ KCONFIG:=$(KCONFIG_IPT_HASHLIMIT)
+ AUTOLOAD:=$(call AutoLoad,50,xt_hashlimit)
+endef
+
+define KernelPackage/ipt-hashlimit/description
+ Kernel modules support for the hashlimit bucket match module
+endef
+
+$(eval $(call KernelPackage,ipt-hashlimit))