summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2005-08-27 22:37:03 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 16:13:22 -0700
commit5f2c3b910744f68e1a507f027398f404b3feb5fb (patch)
tree0e5d7b5ed87f73bd89943358560c72625dd158f1 /include
parent29e4f8b3c340c4b2a0c6dd197b985e03826afd13 (diff)
downloadop-kernel-dev-5f2c3b910744f68e1a507f027398f404b3feb5fb.zip
op-kernel-dev-5f2c3b910744f68e1a507f027398f404b3feb5fb.tar.gz
[NETFILTER]: Add new iptables TTL target
This new iptables target allows manipulation of the TTL of an IPv4 packet. Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter_ipv4/ipt_TTL.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_TTL.h b/include/linux/netfilter_ipv4/ipt_TTL.h
new file mode 100644
index 0000000..ee6611e
--- /dev/null
+++ b/include/linux/netfilter_ipv4/ipt_TTL.h
@@ -0,0 +1,21 @@
+/* TTL modification module for IP tables
+ * (C) 2000 by Harald Welte <laforge@netfilter.org> */
+
+#ifndef _IPT_TTL_H
+#define _IPT_TTL_H
+
+enum {
+ IPT_TTL_SET = 0,
+ IPT_TTL_INC,
+ IPT_TTL_DEC
+};
+
+#define IPT_TTL_MAXMODE IPT_TTL_DEC
+
+struct ipt_TTL_info {
+ u_int8_t mode;
+ u_int8_t ttl;
+};
+
+
+#endif
OpenPOWER on IntegriCloud