summaryrefslogtreecommitdiff
path: root/package/kernel
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2010-11-06 21:08:41 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2010-11-06 21:08:41 +0000
commit3dd6093d26f9002aa7ad6525b9d5edee08c9b43e (patch)
treed315b6864c855bf979ef390ac4b347507c7cc0ff /package/kernel
parent442a8fc32349019732c95b2d5ae38cd7b359678b (diff)
downloadmtk-20170518-3dd6093d26f9002aa7ad6525b9d5edee08c9b43e.zip
mtk-20170518-3dd6093d26f9002aa7ad6525b9d5edee08c9b43e.tar.gz
mtk-20170518-3dd6093d26f9002aa7ad6525b9d5edee08c9b43e.tar.bz2
Add package for ledtrigger netfilter
SVN-Revision: 23902
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/modules/other.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 22d330a..834af2a 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -553,6 +553,27 @@ endef
$(eval $(call KernelPackage,ledtrig-netdev))
+define KernelPackage/ledtrig-netfilter
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=LED NetFilter Trigger
+ DEPENDS:=kmod-ipt-core
+ KCONFIG:=CONFIG_NETFILTER_XT_TARGET_LED
+ FILES:=$(LINUX_DIR)/net/netfilter/xt_LED.ko
+ AUTOLOAD:=$(call AutoLoad,50,xt_LED)
+endef
+
+define KernelPackage/ledtrig-netfilter/description
+ Kernel module to flash LED when a particular packets passing through your machine.
+
+ For example to create an LED trigger for incoming SSH traffic:
+ iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
+ Then attach the new trigger to an LED on your system:
+ echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
+endef
+
+$(eval $(call KernelPackage,ledtrig-netfilter))
+
+
define KernelPackage/lp
SUBMENU:=$(OTHER_MENU)
TITLE:=Parallel port and line printer support