diff options
author | Harald Welte <laforge@netfilter.org> | 2005-08-28 07:37:03 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-30 01:13:22 +0200 |
commit | 5f2c3b910744f68e1a507f027398f404b3feb5fb (patch) | |
tree | 0e5d7b5ed87f73bd89943358560c72625dd158f1 /include | |
parent | [CCID3]: Move ccid3_hc_rx_detect_loss to packet_history.c (diff) | |
download | linux-5f2c3b910744f68e1a507f027398f404b3feb5fb.tar.xz linux-5f2c3b910744f68e1a507f027398f404b3feb5fb.zip |
[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.h | 21 |
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 000000000000..ee6611edc112 --- /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 |