cltp_usrreq.c made separate file in conf/files
[unix-history] / usr / src / sys / netiso / tp_user.h
index cd6864b..1397408 100644 (file)
@@ -29,15 +29,18 @@ SOFTWARE.
  *
  * $Header: tp_user.h,v 5.2 88/11/04 15:44:44 nhall Exp $
  * $Source: /usr/argo/sys/netiso/RCS/tp_user.h,v $
  *
  * $Header: tp_user.h,v 5.2 88/11/04 15:44:44 nhall Exp $
  * $Source: /usr/argo/sys/netiso/RCS/tp_user.h,v $
+ *     @(#)tp_user.h   7.5 (Berkeley) %G%
  *
  * These are the values a real-live user ;-) needs. 
  */
 
  *
  * These are the values a real-live user ;-) needs. 
  */
 
+#ifndef _TYPES_
 #ifdef KERNEL
 #ifdef KERNEL
-#include  "../h/types.h"
+#include  "../sys/types.h"
 #else KERNEL
 #include  <sys/types.h>
 #endif KERNEL
 #else KERNEL
 #include  <sys/types.h>
 #endif KERNEL
+#endif
 
 #ifndef __TP_USER__
 #define __TP_USER__
 
 #ifndef __TP_USER__
 #define __TP_USER__
@@ -78,6 +81,18 @@ struct tp_conn_param {
        u_char  p_netservice;
 };
 
        u_char  p_netservice;
 };
 
+struct tp_control_hdr {
+       u_short cmsg_len;
+       u_short cmsg_type;      /* TPOPT_[CONN,DISC,CFRM]_DATA */
+       u_short cmsg_level;     /* e.g. SOL_SOCKET, _TRANSPORT, etc. */
+/*     u_char  cmsg_data[msg_len - sizeof(tp_control_hdr)]; */
+};
+/*
+ * These sockopt level definitions should be considered for socket.h
+ */
+#define        SOL_TRANSPORT   0xfffe
+#define        SOL_NETWORK     0xfffd
+
 /* get/set socket opt commands */
 #define                TPACK_WINDOW    0x0 /* ack only on full window */
 #define                TPACK_EACH              0x1 /* ack every packet */
 /* get/set socket opt commands */
 #define                TPACK_WINDOW    0x0 /* ack only on full window */
 #define                TPACK_EACH              0x1 /* ack every packet */
@@ -89,12 +104,14 @@ struct tp_conn_param {
 #define TPOPT_FLAGS                    0x300
 #define TPOPT_CONN_DATA                0x400 
 #define TPOPT_DISC_DATA                0x500 
 #define TPOPT_FLAGS                    0x300
 #define TPOPT_CONN_DATA                0x400 
 #define TPOPT_DISC_DATA                0x500 
+#define TPOPT_CFRM_DATA                0x600 
 #define TPOPT_CDDATA_CLEAR     0x700 
 #define TPOPT_PERF_MEAS                0xa00
 #define TPOPT_PSTATISTICS      0xb00
 #define TPOPT_PARAMS           0xc00 /* to replace a bunch of the others */
 #define TPOPT_MY_TSEL          0x800 
 #define TPOPT_PEER_TSEL                0x900 
 #define TPOPT_CDDATA_CLEAR     0x700 
 #define TPOPT_PERF_MEAS                0xa00
 #define TPOPT_PSTATISTICS      0xb00
 #define TPOPT_PARAMS           0xc00 /* to replace a bunch of the others */
 #define TPOPT_MY_TSEL          0x800 
 #define TPOPT_PEER_TSEL                0x900 
+#define TPOPT_NGC8_ACCEPT      0xd00 /* negotiate connection requests */
 
 /* 
  ***********************flags**********************************
 
 /* 
  ***********************flags**********************************
@@ -108,6 +125,7 @@ struct tp_conn_param {
 #define TPFLAG_XPD_PRESENT             (u_char)0x08 /* xpd data present */
 #define TPFLAG_PEER_ON_SAMENET (u_char)0x02
 #define TPFLAG_NLQOS_PDN               (u_char)0x01
 #define TPFLAG_XPD_PRESENT             (u_char)0x08 /* xpd data present */
 #define TPFLAG_PEER_ON_SAMENET (u_char)0x02
 #define TPFLAG_NLQOS_PDN               (u_char)0x01
+#define TPFLAG_NGC8_ACCEPT             (u_char)0x04 /* negotiate conn rq's */
 
 
 /* 
 
 
 /*