aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/xt_RATEEST.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-12-04 23:40:05 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 14:56:02 -0800
commit5859034d7eb8793d3d78d3af515c4175e7b9d03a (patch)
treefbd0efe0424d9ef9dbe2a57b905bcd413c4cb0bc /include/linux/netfilter/xt_RATEEST.h
parent[NETFILTER]: ip_tables: remove obsolete SAME target (diff)
downloadlinux-dev-5859034d7eb8793d3d78d3af515c4175e7b9d03a.tar.xz
linux-dev-5859034d7eb8793d3d78d3af515c4175e7b9d03a.zip
[NETFILTER]: x_tables: add RATEEST target
Add new rate estimator target (using gen_estimator). In combination with the rateest match (next patch) this can be used for load-based multipath routing. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter/xt_RATEEST.h')
-rw-r--r--include/linux/netfilter/xt_RATEEST.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/netfilter/xt_RATEEST.h b/include/linux/netfilter/xt_RATEEST.h
new file mode 100644
index 000000000000..670f2e49d4fb
--- /dev/null
+++ b/include/linux/netfilter/xt_RATEEST.h
@@ -0,0 +1,11 @@
+#ifndef _XT_RATEEST_TARGET_H
+#define _XT_RATEEST_TARGET_H
+
+struct xt_rateest_target_info {
+ char name[IFNAMSIZ];
+ int8_t interval;
+ u_int8_t ewma_log;
+ struct xt_rateest *est __attribute__((aligned(8)));
+};
+
+#endif /* _XT_RATEEST_TARGET_H */