BSD 4_3_Tahoe release
[unix-history] / usr / src / sys / netinet / icmp_var.h
index 0ec672f..1edbbff 100644 (file)
@@ -1,4 +1,21 @@
-/*     icmp_var.h      4.2     83/03/10        */
+/*
+ * Copyright (c) 1982, 1986 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)icmp_var.h  7.4 (Berkeley) 6/29/88
+ */
 
 /*
  * Variables related to this implementation
 
 /*
  * Variables related to this implementation
@@ -9,13 +26,14 @@ struct       icmpstat {
        int     icps_error;             /* # of calls to icmp_error */
        int     icps_oldshort;          /* no error 'cuz old ip too short */
        int     icps_oldicmp;           /* no error 'cuz old was icmp */
        int     icps_error;             /* # of calls to icmp_error */
        int     icps_oldshort;          /* no error 'cuz old ip too short */
        int     icps_oldicmp;           /* no error 'cuz old was icmp */
-       int     icps_outhist[ICMP_IREQREPLY + 1];
+       int     icps_outhist[ICMP_MAXTYPE + 1];
 /* statistics related to input messages processed */
 /* statistics related to input messages processed */
+       int     icps_badcode;           /* icmp_code out of range */
        int     icps_tooshort;          /* packet < ICMP_MINLEN */
        int     icps_checksum;          /* bad checksum */
        int     icps_badlen;            /* calculated bound mismatch */
        int     icps_reflect;           /* number of responses */
        int     icps_tooshort;          /* packet < ICMP_MINLEN */
        int     icps_checksum;          /* bad checksum */
        int     icps_badlen;            /* calculated bound mismatch */
        int     icps_reflect;           /* number of responses */
-       int     icps_inhist[ICMP_IREQREPLY + 1];
+       int     icps_inhist[ICMP_MAXTYPE + 1];
 };
 
 #ifdef KERNEL
 };
 
 #ifdef KERNEL