xref: /original-bsd/sys/netiso/tp_user.h (revision 9bb5f699)
1 /***********************************************************
2 		Copyright IBM Corporation 1987
3 
4                       All Rights Reserved
5 
6 Permission to use, copy, modify, and distribute this software and its
7 documentation for any purpose and without fee is hereby granted,
8 provided that the above copyright notice appear in all copies and that
9 both that copyright notice and this permission notice appear in
10 supporting documentation, and that the name of IBM not be
11 used in advertising or publicity pertaining to distribution of the
12 software without specific, written prior permission.
13 
14 IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20 SOFTWARE.
21 
22 ******************************************************************/
23 
24 /*
25  * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
26  */
27 /*
28  * ARGO TP
29  *
30  * $Header: tp_user.h,v 5.2 88/11/04 15:44:44 nhall Exp $
31  * $Source: /usr/argo/sys/netiso/RCS/tp_user.h,v $
32  *
33  * These are the values a real-live user ;-) needs.
34  */
35 
36 #ifdef KERNEL
37 #include  "../h/types.h"
38 #else KERNEL
39 #include  <sys/types.h>
40 #endif KERNEL
41 
42 #ifndef __TP_USER__
43 #define __TP_USER__
44 
45 struct tp_conn_param {
46 	/* PER CONNECTION parameters */
47 	short	p_Nretrans;
48 	short p_dr_ticks;
49 
50 	short p_cc_ticks;
51 	short p_dt_ticks;
52 
53 	short p_x_ticks;
54 	short p_cr_ticks;
55 
56 	short p_keepalive_ticks;
57 	short p_sendack_ticks;
58 
59 	short p_ref_ticks;
60 	short p_inact_ticks;
61 
62 	short p_unused;	/* local credit fraction reported (>0) no longer used*/
63 	short p_winsize;
64 
65 	u_char p_tpdusize; 	/* log 2 of size */
66 
67 	u_char	p_ack_strat;	/* see comments in tp_pcb.h */
68 	u_char	p_rx_strat;	/* see comments in tp_pcb.h */
69 	u_char	p_class;	 	/* class bitmask */
70 	u_char	p_xtd_format;
71 	u_char	p_xpd_service;
72 	u_char	p_use_checksum;
73 	u_char	p_use_nxpd; 	/* netwk expedited data: not implemented */
74 	u_char	p_use_rcc;	/* receipt confirmation: not implemented */
75 	u_char	p_use_efc;	/* explicit flow control: not implemented */
76 	u_char	p_no_disc_indications; /* don't deliver indic on disc */
77 	u_char	p_dont_change_params; /* use these params as they are */
78 	u_char	p_netservice;
79 };
80 
81 /* get/set socket opt commands */
82 #define		TPACK_WINDOW	0x0 /* ack only on full window */
83 #define		TPACK_EACH		0x1 /* ack every packet */
84 
85 #define		TPRX_USE_CW		0x8 /* use congestion window transmit */
86 #define		TPRX_EACH		0x4 /* retrans each packet of a set */
87 #define		TPRX_FASTSTART	0x1 /* don't use slow start */
88 
89 #define TPOPT_FLAGS			0x300
90 #define TPOPT_CONN_DATA		0x400
91 #define TPOPT_DISC_DATA		0x500
92 #define TPOPT_CDDATA_CLEAR	0x700
93 #define TPOPT_PERF_MEAS		0xa00
94 #define TPOPT_PSTATISTICS	0xb00
95 #define TPOPT_PARAMS		0xc00 /* to replace a bunch of the others */
96 #define TPOPT_MY_TSEL		0x800
97 #define TPOPT_PEER_TSEL		0x900
98 
99 /*
100  ***********************flags**********************************
101  */
102 
103 /* read only flags */
104 #define TPFLAG_DISC_DATA_OUT	(u_char)0x10 /* disc data present */
105 #define TPFLAG_DISC_DATA_IN		(u_char)0x20 /* disc data present */
106 #define TPFLAG_CONN_DATA_OUT	(u_char)0x40 /* conn data present */
107 #define TPFLAG_CONN_DATA_IN		(u_char)0x80 /* conn data present */
108 #define TPFLAG_XPD_PRESENT		(u_char)0x08 /* xpd data present */
109 #define TPFLAG_PEER_ON_SAMENET	(u_char)0x02
110 #define TPFLAG_NLQOS_PDN		(u_char)0x01
111 
112 
113 /*
114  ***********************end flags******************************
115  */
116 
117 
118 #endif __TP_USER__
119