BSD 4_4 release
[unix-history] / usr / src / sys / netccitt / x25.h
index 56c164b..e86af39 100644 (file)
@@ -1,15 +1,43 @@
 /*
  * Copyright (c) University of British Columbia, 1984
 /*
  * Copyright (c) University of British Columbia, 1984
- * Copyright (c) 1990 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1990, 1992, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *              University of Erlangen-Nuremberg, Germany, 1992
+ * 
+ * This code is derived from software contributed to Berkeley by the
+ * Laboratory for Computation Vision and the Computer Science Department
+ * of the the University of British Columbia and the Computer Science
+ * Department (IV) of the University of Erlangen-Nuremberg, Germany.
  *
  *
- * This code is derived from software contributed to Berkeley by
- * the Laboratory for Computation Vision and the Computer Science Department
- * of the University of British Columbia.
+ * 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.
  *
  *
- * %sccs.include.redist.c%
+ * 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.
  *
  *
- *     @(#)x25.h       7.7 (Berkeley) %G%
+ *     @(#)x25.h       8.1 (Berkeley) 6/10/93
  */
 
 #ifdef KERNEL
  */
 
 #ifdef KERNEL
@@ -18,6 +46,9 @@
 #define PRC_LINKDOWN   5
 #define PRC_LINKRESET  6
 #define PRC_LINKDONTCOPY       7
 #define PRC_LINKDOWN   5
 #define PRC_LINKRESET  6
 #define PRC_LINKDONTCOPY       7
+#ifndef PRC_DISCONNECT_REQUEST  
+#define PRC_DISCONNECT_REQUEST 10
+#endif
 #endif
 
 #define CCITTPROTO_HDLC                1
 #endif
 
 #define CCITTPROTO_HDLC                1
@@ -32,6 +63,9 @@
 /* socket options */
 #define PK_ACCTFILE            1       /* use level = CCITTPROTO_X25 */
 #define PK_FACILITIES          2       /* use level = CCITTPROTO_X25 */
 /* socket options */
 #define PK_ACCTFILE            1       /* use level = CCITTPROTO_X25 */
 #define PK_FACILITIES          2       /* use level = CCITTPROTO_X25 */
+#define PK_RTATTACH            3       /* use level = CCITTPROTO_X25 */
+#define PK_PRLISTEN            4       /* use level = CCITTPROTO_X25 */
+
 #define MAX_FACILITIES         109     /* maximum size for facilities */
 
 /*
 #define MAX_FACILITIES         109     /* maximum size for facilities */
 
 /*
@@ -93,11 +127,12 @@ struct     x25config {
        /* link level parameters */
        u_short xc_lproto:4,    /* link level protocol eg. CCITTPROTO_HDLC */
                xc_lptype:4,    /* protocol type eg. HDLCPROTO_LAPB */
        /* link level parameters */
        u_short xc_lproto:4,    /* link level protocol eg. CCITTPROTO_HDLC */
                xc_lptype:4,    /* protocol type eg. HDLCPROTO_LAPB */
-               xc_lwsize:5,    /* link level window size */
                xc_ltrace:1,    /* link level tracing flag */
                xc_ltrace:1,    /* link level tracing flag */
-               xc_rsvd1:2;     /* for use by other link-level protocols */
+               xc_lwsize:7;    /* link level window size */
+       u_short xc_lxidxchg:1,  /* link level XID exchange flag - NOT YET */
        /* packet level parameters */
        /* packet level parameters */
-       u_short xc_pwsize:3,    /* default window size */
+               xc_rsvd1:2,
+                xc_pwsize:3,   /* default window size */
                xc_psize:4,     /* default packet size 7=128, 8=256, ... */
                xc_type:3,      /* network type */
 #define X25_1976       0
                xc_psize:4,     /* default packet size 7=128, 8=256, ... */
                xc_type:3,      /* network type */
 #define X25_1976       0
@@ -107,8 +142,7 @@ struct      x25config {
 #define X25_BASIC      4
                xc_ptrace:1,    /* packet level tracing flag */
                xc_nodnic:1,    /* remove our dnic when calling on net */
 #define X25_BASIC      4
                xc_ptrace:1,    /* packet level tracing flag */
                xc_nodnic:1,    /* remove our dnic when calling on net */
-               xc_prepnd0:1,   /* prepend 0 when making offnet calls */
-               xc_rsvd2:3;
+               xc_prepnd0:1;   /* prepend 0 when making offnet calls */
        u_short xc_maxlcn;      /* max logical channels */
        u_short xc_dg_idletimo; /* timeout for idle datagram circuits. */
 };
        u_short xc_maxlcn;      /* max logical channels */
        u_short xc_dg_idletimo; /* timeout for idle datagram circuits. */
 };