reset directory link counts on I/O failure
[unix-history] / usr / src / sys / netinet / udp_var.h
index d92b5d2..3933347 100644 (file)
@@ -1,4 +1,11 @@
-/*     udp_var.h       4.3     81/11/18        */
+/*
+ * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)udp_var.h   7.7 (Berkeley) %G%
+ */
 
 /*
  * UDP kernel structures and variables.
 
 /*
  * UDP kernel structures and variables.
@@ -20,11 +27,21 @@ struct      udpiphdr {
 #define        ui_sum          ui_u.uh_sum
 
 struct udpstat {
 #define        ui_sum          ui_u.uh_sum
 
 struct udpstat {
-       int     udps_hdrops;
-       int     udps_badsum;
-       int     udps_badlen;
+                               /* input statistics: */
+       int     udps_ipackets;          /* total input packets */
+       int     udps_hdrops;            /* packet shorter than header */
+       int     udps_badsum;            /* checksum error */
+       int     udps_badlen;            /* data length larger than packet */
+       int     udps_noport;            /* no socket on port */
+       int     udps_noportbcast;       /* of above, arrived as broadcast */
+       int     udps_fullsock;          /* not delivered, input socket full */
+       int     udpps_pcbcachemiss;     /* input packets missing pcb cache */
+                               /* output statistics: */
+       int     udps_opackets;          /* total output packets */
 };
 
 };
 
+#define        UDP_TTL         30      /* default time to live for UDP packets */
+
 #ifdef KERNEL
 struct inpcb udb;
 struct udpstat udpstat;
 #ifdef KERNEL
 struct inpcb udb;
 struct udpstat udpstat;