summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2005-08-28 07:37:30 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-30 01:13:29 +0200
commit0ac4f893f20ed524198da5ebf591fc0b9e2ced2f (patch)
tree63650617f3bff152c3bdbd53e470abef6764b784 /include
parent[NETFILTER]: Add new iptables TTL target (diff)
downloadlinux-0ac4f893f20ed524198da5ebf591fc0b9e2ced2f.tar.xz
linux-0ac4f893f20ed524198da5ebf591fc0b9e2ced2f.zip
[NETFILTER6]: Add new ip6tables HOPLIMIT target
This target allows users to modify the hoplimit header field of the IPv6 header. 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_ipv6/ip6t_HL.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv6/ip6t_HL.h b/include/linux/netfilter_ipv6/ip6t_HL.h
new file mode 100644
index 000000000000..afb7813d45ab
--- /dev/null
+++ b/include/linux/netfilter_ipv6/ip6t_HL.h
@@ -0,0 +1,22 @@
+/* Hop Limit modification module for ip6tables
+ * Maciej Soltysiak <solt@dns.toxicfilms.tv>
+ * Based on HW's TTL module */
+
+#ifndef _IP6T_HL_H
+#define _IP6T_HL_H
+
+enum {
+ IP6T_HL_SET = 0,
+ IP6T_HL_INC,
+ IP6T_HL_DEC
+};
+
+#define IP6T_HL_MAXMODE IP6T_HL_DEC
+
+struct ip6t_HL_info {
+ u_int8_t mode;
+ u_int8_t hop_limit;
+};
+
+
+#endif