fix record route; don't forward funny stuff; drop if ttl reaches 0
[unix-history] / usr / src / sys / netinet / udp_var.h
index a194c25..481edc3 100644 (file)
@@ -1,9 +1,9 @@
 /*
 /*
- * Copyright (c) 1982 Regents of the University of California.
+ * Copyright (c) 1982, 1986 Regents of the University of California.
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)udp_var.h   6.2 (Berkeley) %G%
+ *     @(#)udp_var.h   7.1 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -31,6 +31,8 @@ struct        udpstat {
        int     udps_badlen;
 };
 
        int     udps_badlen;
 };
 
+#define        UDP_TTL         30              /* time to live for UDP packets */
+
 #ifdef KERNEL
 struct inpcb udb;
 struct udpstat udpstat;
 #ifdef KERNEL
 struct inpcb udb;
 struct udpstat udpstat;