[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a hack



     Greetings,

 I just want to ask your opinions about this patch:

Index: sys/netinet/ip.h
===================================================================
RCS file: /cvs/src/sys/netinet/ip.h,v
retrieving revision 1.10
diff -u -p -r1.10 ip.h
--- sys/netinet/ip.h    2 Jun 2003 23:28:14 -0000       1.10
+++ sys/netinet/ip.h    26 Mar 2004 06:25:14 -0000
@@ -178,8 +178,11 @@ struct     ip_timestamp {
 #define        MAXTTL          255             /* maximum time to live (seconds) */
 #define        IPDEFTTL        64              /* default ttl, from RFC 1340 */
 #define        IPFRAGTTL       60              /* time to live for frags, slowhz */
-#define        IPTTLDEC        1               /* subtracted when forwarding */

+#ifndef        IPTTLDEC
+#define        IPTTLDEC        1               /* subtracted when forwarding */
+#endif /* IPTTLDEC */
+
 #define        IP_MSS          576             /* default maximum segment size */

 /*

  It makes possible to configure custom TTL decrement value from
kernel config. For example - 0 (i.e. "stealth" forwarding).

Thank you.

Ilya A. Kovalenko              (mailto:shadow@oganer.net)