diff options
author | Harald Welte <laforge@netfilter.org> | 2005-08-27 22:37:30 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 16:13:29 -0700 |
commit | 0ac4f893f20ed524198da5ebf591fc0b9e2ced2f (patch) | |
tree | 63650617f3bff152c3bdbd53e470abef6764b784 /include | |
parent | 5f2c3b910744f68e1a507f027398f404b3feb5fb (diff) | |
download | linux-3.10-0ac4f893f20ed524198da5ebf591fc0b9e2ced2f.tar.gz linux-3.10-0ac4f893f20ed524198da5ebf591fc0b9e2ced2f.tar.bz2 linux-3.10-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.h | 22 |
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 00000000000..afb7813d45a --- /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 |