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 <stl...@poczta.fm>

--8<---------------cut here---------------start------------->8---
Index: include/netfilter.mk
===================================================================
--- include/netfilter.mk        (wersja 25238)
+++ include/netfilter.mk        (kopia robocza)
@@ -269,7 +269,10 @@
 
 $(eval $(call nf_add,IPT_ULOG,CONFIG_IP_NF_TARGET_ULOG, $(P_V4)ipt_ULOG))
 
+# led
 
+$(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED))
+
 #
 # ebtables
 #
Index: package/kernel/modules/netfilter.mk
===================================================================
--- package/kernel/modules/netfilter.mk (wersja 25238)
+++ package/kernel/modules/netfilter.mk (kopia robocza)
@@ -282,7 +282,21 @@
 
 $(eval $(call KernelPackage,ipt-ulog))
 
+define KernelPackage/ipt-led
+$(call KernelPackage/ipt/Depends,)
+  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)))
+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-iprange
 $(call KernelPackage/ipt/Depends,)
   TITLE:=Module for matching ip ranges
--8<---------------cut here---------------end--------------->8---

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to