[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a hack
Hello, Ilya.
If it is necessary to do may be it will better via sysctl?
IAK> Greetings,
IAK> I just want to ask your opinions about this patch:
IAK> Index: sys/netinet/ip.h
IAK> ===================================================================
IAK> RCS file: /cvs/src/sys/netinet/ip.h,v
IAK> retrieving revision 1.10
IAK> diff -u -p -r1.10 ip.h
IAK> --- sys/netinet/ip.h 2 Jun 2003 23:28:14 -0000 1.10
IAK> +++ sys/netinet/ip.h 26 Mar 2004 06:25:14 -0000
IAK> @@ -178,8 +178,11 @@ struct ip_timestamp {
IAK> #define MAXTTL 255 /* maximum time to live (seconds) */
IAK> #define IPDEFTTL 64 /* default ttl, from RFC 1340 */
IAK> #define IPFRAGTTL 60 /* time to live for frags, slowhz */
IAK> -#define IPTTLDEC 1 /* subtracted when forwarding */
IAK> +#ifndef IPTTLDEC
IAK> +#define IPTTLDEC 1 /* subtracted when forwarding */
IAK> +#endif /* IPTTLDEC */
IAK> +
IAK> #define IP_MSS 576 /* default maximum segment size */
IAK> /*
IAK> It makes possible to configure custom TTL decrement value from
IAK> kernel config. For example - 0 (i.e. "stealth" forwarding).
IAK> Thank you.
IAK> Ilya A. Kovalenko (mailto:shadow@oganer.net)
--
tm (i nhad, a'm gosododd ar ben y fford heb gael gweld y tiroedd draw)
- References:
- a hack
- From: "Ilya A. Kovalenko" <shadow@oganer.net>