must have directory vnode as first op
[unix-history] / usr / src / sys / netiso / tp_user.h
CommitLineData
7bcd1bb8
KB
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
d119092b 7 * @(#)tp_user.h 7.12 (Berkeley) %G%
7bcd1bb8
KB
8 */
9
ebaa9b50
KS
10/***********************************************************
11 Copyright IBM Corporation 1987
12
13 All Rights Reserved
14
15Permission to use, copy, modify, and distribute this software and its
16documentation for any purpose and without fee is hereby granted,
17provided that the above copyright notice appear in all copies and that
18both that copyright notice and this permission notice appear in
19supporting documentation, and that the name of IBM not be
20used in advertising or publicity pertaining to distribution of the
21software without specific, written prior permission.
22
23IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
24ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
25IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
26ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
27WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
28ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
29SOFTWARE.
30
31******************************************************************/
32
33/*
34 * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
35 */
36/*
37 * ARGO TP
38 *
39 * $Header: tp_user.h,v 5.2 88/11/04 15:44:44 nhall Exp $
40 * $Source: /usr/argo/sys/netiso/RCS/tp_user.h,v $
41 *
42 * These are the values a real-live user ;-) needs.
43 */
44
25d45a7a 45#ifndef _TYPES_
ebaa9b50 46#ifdef KERNEL
25d45a7a 47#include "../sys/types.h"
ebaa9b50
KS
48#else KERNEL
49#include <sys/types.h>
50#endif KERNEL
25d45a7a 51#endif
ebaa9b50
KS
52
53#ifndef __TP_USER__
54#define __TP_USER__
55
56struct tp_conn_param {
57 /* PER CONNECTION parameters */
58 short p_Nretrans;
bebb97ee 59 short p_dr_ticks;
ebaa9b50 60
bebb97ee
KS
61 short p_cc_ticks;
62 short p_dt_ticks;
ebaa9b50 63
bebb97ee
KS
64 short p_x_ticks;
65 short p_cr_ticks;
ebaa9b50 66
bebb97ee
KS
67 short p_keepalive_ticks;
68 short p_sendack_ticks;
ebaa9b50 69
bebb97ee
KS
70 short p_ref_ticks;
71 short p_inact_ticks;
ebaa9b50 72
d119092b 73 short p_ptpdusize; /* preferred tpdusize/128 */
bebb97ee 74 short p_winsize;
ebaa9b50 75
bebb97ee 76 u_char p_tpdusize; /* log 2 of size */
ebaa9b50
KS
77
78 u_char p_ack_strat; /* see comments in tp_pcb.h */
79 u_char p_rx_strat; /* see comments in tp_pcb.h */
80 u_char p_class; /* class bitmask */
81 u_char p_xtd_format;
82 u_char p_xpd_service;
83 u_char p_use_checksum;
84 u_char p_use_nxpd; /* netwk expedited data: not implemented */
85 u_char p_use_rcc; /* receipt confirmation: not implemented */
86 u_char p_use_efc; /* explicit flow control: not implemented */
bebb97ee
KS
87 u_char p_no_disc_indications; /* don't deliver indic on disc */
88 u_char p_dont_change_params; /* use these params as they are */
ebaa9b50 89 u_char p_netservice;
bebb97ee 90 u_char p_version; /* only here for checking */
ebaa9b50
KS
91};
92
a50e2bc0
KS
93/*
94 * These sockopt level definitions should be considered for socket.h
95 */
96#define SOL_TRANSPORT 0xfffe
97#define SOL_NETWORK 0xfffd
98
ebaa9b50
KS
99/* get/set socket opt commands */
100#define TPACK_WINDOW 0x0 /* ack only on full window */
101#define TPACK_EACH 0x1 /* ack every packet */
102
103#define TPRX_USE_CW 0x8 /* use congestion window transmit */
104#define TPRX_EACH 0x4 /* retrans each packet of a set */
105#define TPRX_FASTSTART 0x1 /* don't use slow start */
106
63f88aec 107#define TPOPT_INTERCEPT 0x200
ebaa9b50
KS
108#define TPOPT_FLAGS 0x300
109#define TPOPT_CONN_DATA 0x400
110#define TPOPT_DISC_DATA 0x500
a50e2bc0 111#define TPOPT_CFRM_DATA 0x600
ebaa9b50 112#define TPOPT_CDDATA_CLEAR 0x700
01acbfa1
KS
113#define TPOPT_MY_TSEL 0x800
114#define TPOPT_PEER_TSEL 0x900
ebaa9b50
KS
115#define TPOPT_PERF_MEAS 0xa00
116#define TPOPT_PSTATISTICS 0xb00
117#define TPOPT_PARAMS 0xc00 /* to replace a bunch of the others */
087b86a4
KS
118#define TPOPT_DISC_REASON 0xe00
119
120struct tp_disc_reason {
121 struct cmsghdr dr_hdr;
122 u_int dr_reason;
123};
ebaa9b50
KS
124
125/*
126 ***********************flags**********************************
127 */
128
129/* read only flags */
ebaa9b50 130#define TPFLAG_NLQOS_PDN (u_char)0x01
01acbfa1
KS
131#define TPFLAG_PEER_ON_SAMENET (u_char)0x02
132#define TPFLAG_GENERAL_ADDR (u_char)0x04 /* bound to wildcard addr */
ebaa9b50
KS
133
134
135/*
136 ***********************end flags******************************
137 */
138
139
140#endif __TP_USER__