From 5959cd2850c14842680c8b6cfbaf816c9ce48700 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 3 Apr 2011 18:30:37 +0000 Subject: [PATCH] add kmod-ipt-led MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Netfilter LED target triggers blinkenlichten when a network packet hits a rule. LED target requires iptables 1.4.9 or higher Signed-off-by: Łukasz Stelmach SVN-Revision: 26451 --- include/netfilter.mk | 3 +++ package/kernel/modules/netfilter.mk | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/include/netfilter.mk b/include/netfilter.mk index 60b4826ebc..5cc34b4814 100644 --- a/include/netfilter.mk +++ b/include/netfilter.mk @@ -283,6 +283,9 @@ $(eval $(call nf_add,IPT_ULOG,CONFIG_IP_NF_TARGET_ULOG, $(P_V4)ipt_ULOG)) $(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_MATCH_SOCKET, $(P_XT)xt_socket)) $(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_TARGET_TPROXY, $(P_XT)xt_TPROXY)) +# led +$(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED)) + # # ebtables # diff --git a/package/kernel/modules/netfilter.mk b/package/kernel/modules/netfilter.mk index 2393d70a68..e44d067f35 100644 --- a/package/kernel/modules/netfilter.mk +++ b/package/kernel/modules/netfilter.mk @@ -262,6 +262,20 @@ endef $(eval $(call KernelPackage,ipt-ulog)) +define KernelPackage/ipt-led + TITLE:=Module to trigger a LED with a Netfilter rule + KCONFIG:=$(KCONFIG_IPT_LED) + FILES:=$(foreach mod,$(IPT_LED-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX)) + AUTOLOAD:=$(call AutoLoad,61,$(notdir $(IPT_LED-m))) + $(call AddDepends/ipt) +endef + +define KernelPackage/ipt-led/description + Netfilter target to trigger a LED when a network packet is matched. +endef + +$(eval $(call KernelPackage,ipt-led)) + define KernelPackage/ipt-tproxy TITLE:=Transparent proxying support KCONFIG:= \ -- 2.30.2