vinit changed for new vn_if
[unix-history] / usr / src / sys / netns / ns_error.h
index 9d33338..3312f7c 100644 (file)
@@ -1,9 +1,10 @@
 /*
 /*
- * Copyright (c) 1984, 1985, 1986 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1984, 1988 Regents of the University of California.
+ * All rights reserved.
  *
  *
- *     @(#)ns_error.h  7.1 (Berkeley) %G%
+ * %sccs.include.redist.c%
+ *
+ *     @(#)ns_error.h  7.5 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -35,10 +36,7 @@ struct  ns_epidp {
                                   some intermediate gateway.  The error
                                   parameter field contains the max packet
                                   size that can be accommodated */
                                   some intermediate gateway.  The error
                                   parameter field contains the max packet
                                   size that can be accommodated */
-#define NS_ERR_ATHOST  4
-#define NS_ERR_ENROUTE 5
-#define NS_ERR_MAX (NS_ERR_ATHOST + NS_ERR_ENROUTE + 1)
-#define ns_err_x(c) (((c)&0x200) ? ((c) - 0x200 + NS_ERR_ATHOST) : c )
+#define NS_ERR_MAX 20
 
 /*
  * Variables related to this implementation
 
 /*
  * Variables related to this implementation
@@ -57,6 +55,8 @@ struct        ns_errstat {
        int     ns_es_badlen;           /* calculated bound mismatch */
        int     ns_es_reflect;          /* number of responses */
        int     ns_es_inhist[NS_ERR_MAX];
        int     ns_es_badlen;           /* calculated bound mismatch */
        int     ns_es_reflect;          /* number of responses */
        int     ns_es_inhist[NS_ERR_MAX];
+       u_short ns_es_codes[NS_ERR_MAX];/* which error code for outhist
+                                          since we might not know all */
 };
 
 #ifdef KERNEL
 };
 
 #ifdef KERNEL