gcc lint
[unix-history] / usr / src / sys / netinet / udp_var.h
index 3168d09..3933347 100644 (file)
@@ -1,9 +1,10 @@
 /*
 /*
- * 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.
+ * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
+ * All rights reserved.
  *
  *
- *     @(#)udp_var.h   7.2 (Berkeley) %G%
+ * %sccs.include.redist.c%
+ *
+ *     @(#)udp_var.h   7.7 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -26,12 +27,20 @@ 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              /* deflt time to live for UDP packets */
+#define        UDP_TTL         30      /* default time to live for UDP packets */
 
 #ifdef KERNEL
 struct inpcb udb;
 
 #ifdef KERNEL
 struct inpcb udb;