BSD 4_4 release
[unix-history] / usr / src / sys / vax / if / if_vv.h
index d091d0a..41c3358 100644 (file)
@@ -1,4 +1,37 @@
-/*     if_vv.h 4.7     85/06/03        */
+/*
+ * Copyright (c) 1982, 1986 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *     @(#)if_vv.h     7.4 (Berkeley) 6/28/90
+ */
 
 /*
  * ECO 176-748 changed the braodcast address from 0 to 0xff, at
 
 /*
  * ECO 176-748 changed the braodcast address from 0 to 0xff, at
@@ -32,12 +65,8 @@ struct vv_header {
  * Other types are defined, but are proprietary.
  */
 #define        RING_IP         1
  * Other types are defined, but are proprietary.
  */
 #define        RING_IP         1
-#define        RING_IPTrailer  2       /* really, 3 = 512 bytes */
-                               /*         4 = 1024 bytes */
-                               /*         5 = 1536 bytes */
-                               /* it's really very messed-up! */
-#define        RING_IPNTrailer 4       /* not a number, but a range */
-#define RING_ARP       3       /* the next three conflict with trailers */
+#define        RING_TRAILER    2       /* offset now in vh_info only */
+#define RING_ARP       3
 #define RING_HDLC      4
 #define RING_VAXDB     5
 #define RING_RINGWAY   6
 #define RING_HDLC      4
 #define RING_VAXDB     5
 #define RING_RINGWAY   6
@@ -47,6 +76,7 @@ struct vv_header {
 #define RING_XNS       14
 #define        RING_DIAGNOSTICS 15     /* protocol type for testing */
 #define        RING_ECHO       16
 #define RING_XNS       14
 #define        RING_DIAGNOSTICS 15     /* protocol type for testing */
 #define        RING_ECHO       16
+#define RING_8022      23
 
 #ifdef NEW_BROADCAST
 #define        VV_BROADCAST    0xff    /* hardware-defined broadcast address */
 
 #ifdef NEW_BROADCAST
 #define        VV_BROADCAST    0xff    /* hardware-defined broadcast address */
@@ -83,7 +113,7 @@ struct vv_header {
 #define        VV_NIR  0100000         /* Not in Ring */
 
 #define        VVXERR  (VV_NXM|VV_OVR|VV_OPT|VV_BDF)   /* Xmit errs */
 #define        VV_NIR  0100000         /* Not in Ring */
 
 #define        VVXERR  (VV_NXM|VV_OVR|VV_OPT|VV_BDF)   /* Xmit errs */
-#define        VVRERR  (VV_NXM|VV_OVR|VV_ODB|VV_BDF)   /* Rcv errs */
+#define        VVRERR  (VV_NXM|VV_OVR|VV_ODB|VV_BDF|VV_DPR)    /* Rcv errs */
 #define        VVFE    (VV_NXM|VV_OVR)                 /* Fatal errors */
 
 #define VV_IBITS \
 #define        VVFE    (VV_NXM|VV_OVR)                 /* Fatal errors */
 
 #define VV_IBITS \