aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/Kbuild
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2010-06-15 15:04:00 +0200
committerPatrick McHardy <kaber@trash.net>2010-06-15 15:04:00 +0200
commit0902b469bd25065aa0688c3cee6f11744c817e7c (patch)
treeb7e1516da57ee49d98de0789a19fc283b50bf1de /include/linux/netfilter/Kbuild
parentnetfilter: CLUSTERIP: RCU conversion (diff)
downloadlinux-dev-0902b469bd25065aa0688c3cee6f11744c817e7c.tar.xz
linux-dev-0902b469bd25065aa0688c3cee6f11744c817e7c.zip
netfilter: xtables: idletimer target implementation
This patch implements an idletimer Xtables target that can be used to identify when interfaces have been idle for a certain period of time. Timers are identified by labels and are created when a rule is set with a new label. The rules also take a timeout value (in seconds) as an option. If more than one rule uses the same timer label, the timer will be restarted whenever any of the rules get a hit. One entry for each timer is created in sysfs. This attribute contains the timer remaining for the timer to expire. The attributes are located under the xt_idletimer class: /sys/class/xt_idletimer/timers/<label> When the timer expires, the target module sends a sysfs notification to the userspace, which can then decide what to do (eg. disconnect to save power). Cc: Timo Teras <timo.teras@iki.fi> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/netfilter/Kbuild')
-rw-r--r--include/linux/netfilter/Kbuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netfilter/Kbuild b/include/linux/netfilter/Kbuild
index 48767cd16453..bb103f43afa0 100644
--- a/include/linux/netfilter/Kbuild
+++ b/include/linux/netfilter/Kbuild
@@ -8,6 +8,7 @@ header-y += xt_CONNMARK.h
header-y += xt_CONNSECMARK.h
header-y += xt_CT.h
header-y += xt_DSCP.h
+header-y += xt_IDLETIMER.h
header-y += xt_LED.h
header-y += xt_MARK.h
header-y += xt_NFLOG.h