summaryrefslogtreecommitdiff
path: root/usr/src/lib/libbc/inc/include/nettli
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libbc/inc/include/nettli')
-rw-r--r--usr/src/lib/libbc/inc/include/nettli/tcp_tli.h106
-rw-r--r--usr/src/lib/libbc/inc/include/nettli/tcp_tlivar.h140
-rw-r--r--usr/src/lib/libbc/inc/include/nettli/tihdr.h386
-rw-r--r--usr/src/lib/libbc/inc/include/nettli/timod.h72
-rw-r--r--usr/src/lib/libbc/inc/include/nettli/tiuser.h217
5 files changed, 0 insertions, 921 deletions
diff --git a/usr/src/lib/libbc/inc/include/nettli/tcp_tli.h b/usr/src/lib/libbc/inc/include/nettli/tcp_tli.h
deleted file mode 100644
index cae1ac1d13..0000000000
--- a/usr/src/lib/libbc/inc/include/nettli/tcp_tli.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright (c) 1988,2001 by Sun Microsystems, Inc.
- * All rights reserved.
- */
-
-#ifndef _TCP_TLI_
-#define _TCP_TLI_
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/*
- * TLI automaton state definitions.
- *
- * They are expressed as bit masks to facilitate testing whether the
- * current automaton state is contained in a given set of states.
- */
-#define TL_UNINIT 0x0000 /* uninitialized */
-#define TL_UNBND 0x0002 /* unbound */
-#define TL_IDLE 0x0004 /* no connection established */
-/*
- * outgoing connection pending for active user
- */
-#define TL_OUTCON 0x0008
-/*
- * incoming connection pending for passive user
- */
-#define TL_INCON 0x0010
-#define TL_DATAXFER 0x0020 /* data transfer */
-/*
- * outgoing orderly release (waiting for orderly release indication)
- */
-#define TL_OUTREL 0x0040
-/*
- * incoming orderly release (waiting to send orderly release request)
- */
-#define TL_INREL 0x0080
-/*
- * pseudo-state indicating disallowed transition (may end up unnecessary)
- */
-#define TL_ERROR 0x0100
-
-/*
- * Max buffer size for each uio operation in tcptli_Ercv()
- */
-#define TT_BUFSIZE 2048
-
-/*
- * Send and Recv size for socket operations
- */
-#define TT_SENDSIZE 24 * 1024
-#define TT_RECVSIZE 24 * 1024
-
-/*
- * Max number of uio vectors for sosend and soreceive
- */
-#define TT_MAXUIO 10
-
-/*
- * Flag to indicate that only part of the data buffer got sent
- */
-#define TT_INCOMPLETESEND 201
-
-/*
- * Protocol options (socket options) supported by T_OPTMGMT_REQ
- */
-struct tt_soopt {
- int tts_reuseaddr; /* reuse a bound address */
- int tts_keepalive; /* keep connection alive */
- int tts_sendsize; /* socket send size */
- int tts_recvsize; /* socket recv size */
-};
-
-#define TTS_BUFSIZE 4096 /* default socket send/recv size */
-#define TTS_DFLT_REUSEADDR 1
-#define TTS_DFLT_KEEPALIVE 1
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TCP_TLI_ */
diff --git a/usr/src/lib/libbc/inc/include/nettli/tcp_tlivar.h b/usr/src/lib/libbc/inc/include/nettli/tcp_tlivar.h
deleted file mode 100644
index 456cf9cdac..0000000000
--- a/usr/src/lib/libbc/inc/include/nettli/tcp_tlivar.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 1988 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#ifndef _TCP_TLIVAR_
-#define _TCP_TLIVAR_
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/*
- * Data structure definitions for the streams interface
- * to the socket-based TCP implementation.
- */
-
-/*
- * Socket Information block contains the special socket wakeup
- * hooks. When a block of tt_sockinfo is allocated, the wupalt.wup_arg
- * points to the beginning of tt_sockinfo.
- */
-
-struct tt_sockinfo {
- struct wupalt ts_sowakeup; /* special sock wakeup hook */
- u_long ts_seqnum; /* connection sequence number */
- long ts_flags; /* see below */
- struct tt_softc *ts_ttp; /* back ptr to dev-instance handle */
-};
-/*
- * No connection assoicated with this socket
- */
-#define TT_TS_NOTUSED 0x00
-/*
- * This socket is connected or pending connection
- */
-#define TT_TS_INUSE 0x01
-
-/*
- * Per-device instance state information.
- *
- * To aid in handling resource starvation situations, we pre-allocate two
- * messages for reporting errors. Tt_merror is used as a last resort, when
- * attempts to allocate a normal error reply fail. It's allocated in the
- * open routine and freed in the close routine. The routines that produce
- * response messages try to keep tt_errack pre-allocated, but don't insist
- * that it always be valid. This strategy attempts to minimize the
- * probability of having to fall back on the drastic measure of using the
- * M_ERROR message.
- */
-struct tt_softc {
- /* The tt_unit & tt_unitnext fields aren't yet used. */
- struct tt_softc *tt_next; /* link to next device instance */
- u_short tt_unit; /* instance number */
- u_short tt_unitnext; /* next unit # to be used on open */
-
- queue_t *tt_rq; /* cross-link to read queue */
- struct socket *tt_so; /* socket for this device instance */
- mblk_t *tt_merror; /* pre-allocated M_ERROR message */
- mblk_t *tt_errack; /* pre-allocated T_error_ack message */
- u_int tt_state; /* current state of the tli automaton */
- long tt_seqnext; /* next sequence number to assign */
- u_long tt_flags; /* see below */
- u_long tt_event; /* service event inidication */
- struct proc *tt_auxprocp; /* Aux proc handle */
- struct in_addr tt_laddr; /* saved local address */
- u_short tt_lport; /* saved local port number */
-};
-
-/*
- * Flag (tt_flags) bits private to the driver.
- */
-#define TT_OPEN 0x01 /* device instance is currently open */
-#define TT_ERROR 0x02 /* in error state -- unusable */
-#define TT_CLOSE 0x04 /* this device instance is closed */
-#define TT_TIMER 0x08 /* scheduled wakeup timer is already set */
-/*
- * Event (tt_event) bits private to the driver.
- */
-#define TTE_EVENT 0x01 /* aux proc service wanted indication */
-#define TTE_ONQUEUE 0x02 /* set if this ttp has wakeup-event pending */
-
-/*
- * Internet style address for TLI
- */
-struct taddr_in {
- short sin_family;
- u_short sin_port;
- struct in_addr sin_addr;
-};
-
-/*
- * For use with direct-read only
- * when:
- * - TI is in the correct state
- * - there are data to be read
- * - socket is in state to receive
- * - socket buffer not locked (we are running this
- * at interrupt level !)
- * - the auxproc is not running
- */
-#define TT_DIRECT_READ(ttp, so) { \
- extern int tcptli_auxproc_running; \
- if (((ttp)->tt_state & TL_DATAXFER) && \
- ((so)->so_rcv.sb_cc != 0) && \
- (!((so)->so_state & SS_CANTRCVMORE)) && \
- (!((so)->so_rcv.sb_flags & SB_LOCK)) && \
- (!tcptli_auxproc_running)) \
- if (tcptli_Ercv((ttp))) \
- return; \
-}
-
-#ifdef TLIDEBUG
-extern tcptli_debug;
-#define TCPTLI_PRINTF if (tcptli_debug) printf
-#else
-#define TCPTLI_PRINTF
-#endif /* TLIDEBUG */
-
-#endif /* _TCP_TLIVAR_ */
diff --git a/usr/src/lib/libbc/inc/include/nettli/tihdr.h b/usr/src/lib/libbc/inc/include/nettli/tihdr.h
deleted file mode 100644
index 424298dd80..0000000000
--- a/usr/src/lib/libbc/inc/include/nettli/tihdr.h
+++ /dev/null
@@ -1,386 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* from S5R3 sys/tihdr.h 10.2" */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1984 AT&T */
-/* All Rights Reserved */
-
-
-/* #ident "@(#)kern-port:sys/tihdr.h 10.2" */
-
-/*
- * The following is all the information
- * needed by the Transport Service Interface.
- */
-
-#ifndef _nettli_tihdr_h
-#define _nettli_tihdr_h
-
-/*
- * The following are the definitions of the Transport
- * Service Interface primitives.
- */
-
-/*
- * Primitives that are initiated by the transport user.
- */
-#define T_CONN_REQ 0 /* connection request */
-#define T_CONN_RES 1 /* connection response */
-#define T_DISCON_REQ 2 /* disconnect request */
-#define T_DATA_REQ 3 /* data request */
-#define T_EXDATA_REQ 4 /* expedited data request */
-#define T_INFO_REQ 5 /* information request */
-#define T_BIND_REQ 6 /* bind request */
-#define T_UNBIND_REQ 7 /* unbind request */
-#define T_UNITDATA_REQ 8 /* unitdata request */
-#define T_OPTMGMT_REQ 9 /* manage options req */
-#define T_ORDREL_REQ 10 /* orderly release req */
-
-/*
- * Primitives that are initiated by the transport provider.
- */
-
-#define T_CONN_IND 11 /* connection indication */
-#define T_CONN_CON 12 /* connection confirmation */
-#define T_DISCON_IND 13 /* disconnect indication */
-#define T_DATA_IND 14 /* data indication */
-#define T_EXDATA_IND 15 /* expeditied data indication */
-#define T_INFO_ACK 16 /* information acknowledgment */
-#define T_BIND_ACK 17 /* bind acknowledment */
-#define T_ERROR_ACK 18 /* error acknowledgment */
-#define T_OK_ACK 19 /* ok acknowledgment */
-#define T_UNITDATA_IND 20 /* unitdata indication */
-#define T_UDERROR_IND 21 /* unitdata error indication */
-#define T_OPTMGMT_ACK 22 /* manage options ack */
-#define T_ORDREL_IND 23 /* orderly release ind */
-
-/*
- * The following are the events that drive the state machine
- */
-/* Initialization events */
-#define TE_BIND_REQ 0 /* bind request */
-#define TE_UNBIND_REQ 1 /* unbind request */
-#define TE_OPTMGMT_REQ 2 /* manage options req */
-#define TE_BIND_ACK 3 /* bind acknowledment */
-#define TE_OPTMGMT_ACK 4 /* manage options ack */
-#define TE_ERROR_ACK 5 /* error acknowledgment */
-#define TE_OK_ACK1 6 /* ok ack seqcnt == 0 */
-#define TE_OK_ACK2 7 /* ok ack seqcnt == 1, q == resq */
-#define TE_OK_ACK3 8 /* ok ack seqcnt == 1, q != resq */
-#define TE_OK_ACK4 9 /* ok ack seqcnt > 1 */
-
-/* Connection oriented events */
-#define TE_CONN_REQ 10 /* connection request */
-#define TE_CONN_RES 11 /* connection response */
-#define TE_DISCON_REQ 12 /* disconnect request */
-#define TE_DATA_REQ 13 /* data request */
-#define TE_EXDATA_REQ 14 /* expedited data request */
-#define TE_ORDREL_REQ 15 /* orderly release req */
-#define TE_CONN_IND 16 /* connection indication */
-#define TE_CONN_CON 17 /* connection confirmation */
-#define TE_DATA_IND 18 /* data indication */
-#define TE_EXDATA_IND 19 /* expedited data indication */
-#define TE_ORDREL_IND 20 /* orderly release ind */
-#define TE_DISCON_IND1 21 /* disconnect indication seq == 0 */
-#define TE_DISCON_IND2 22 /* disconnect indication seq == 1 */
-#define TE_DISCON_IND3 23 /* disconnect indication seq > 1 */
-#define TE_PASS_CONN 24 /* pass connection */
-
-/* Unit data events */
-#define TE_UNITDATA_REQ 25 /* unitdata request */
-#define TE_UNITDATA_IND 26 /* unitdata indication */
-#define TE_UDERROR_IND 27 /* unitdata error indication */
-
-#define TE_NOEVENTS 28
-/*
- * The following are the possible states of the Transport
- * Service Interface
- */
-
-#define TS_UNBND 0 /* unbound */
-#define TS_WACK_BREQ 1 /* waiting ack of BIND_REQ */
-#define TS_WACK_UREQ 2 /* waiting ack of UNBIND_REQ */
-#define TS_IDLE 3 /* idle */
-#define TS_WACK_OPTREQ 4 /* wait ack options request */
-#define TS_WACK_CREQ 5 /* waiting ack of CONN_REQ */
-#define TS_WCON_CREQ 6 /* waiting confirm of CONN_REQ */
-#define TS_WRES_CIND 7 /* waiting response of CONN_IND */
-#define TS_WACK_CRES 8 /* waiting ack of CONN_RES */
-#define TS_DATA_XFER 9 /* data transfer */
-#define TS_WIND_ORDREL 10 /* releasing rd but not wr */
-#define TS_WREQ_ORDREL 11 /* wait to release wr but not rd*/
-#define TS_WACK_DREQ6 12 /* waiting ack of DISCON_REQ */
-#define TS_WACK_DREQ7 13 /* waiting ack of DISCON_REQ */
-#define TS_WACK_DREQ9 14 /* waiting ack of DISCON_REQ */
-#define TS_WACK_DREQ10 15 /* waiting ack of DISCON_REQ */
-#define TS_WACK_DREQ11 16 /* waiting ack of DISCON_REQ */
-
-#define TS_NOSTATES 17
-
-
-/*
- * The following structure definitions define the format of the
- * stream message block of the above primitives.
- * (everything is declared long to ensure proper alignment
- * across different machines)
- */
-
-/* connection request */
-
-struct T_conn_req {
- long PRIM_type; /* always T_CONN_REQ */
- long DEST_length; /* dest addr length */
- long DEST_offset; /* dest addr offset */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
-};
-
-/* connect response */
-
-struct T_conn_res {
- long PRIM_type; /* always T_CONN_RES */
- void *QUEUE_ptr; /* responding queue ptr */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
- long SEQ_number; /* sequence number */
-};
-
-/* disconnect request */
-
-struct T_discon_req {
- long PRIM_type; /* always T_DISCON_REQ */
- long SEQ_number; /* sequnce number */
-};
-
-/* data request */
-
-struct T_data_req {
- long PRIM_type; /* always T_DATA_REQ */
- long MORE_flag; /* more data */
-};
-
-/* expedited data request */
-
-struct T_exdata_req {
- long PRIM_type; /* always T_EXDATA_REQ */
- long MORE_flag; /* more data */
-};
-
-/* information request */
-
-struct T_info_req {
- long PRIM_type; /* always T_INFO_REQ */
-};
-
-/* bind request */
-
-struct T_bind_req {
- long PRIM_type; /* always T_BIND_REQ */
- long ADDR_length; /* addr length */
- long ADDR_offset; /* addr offset */
- unsigned long CONIND_number; /*connect indications requested */
-};
-
-/* unbind request */
-
-struct T_unbind_req {
- long PRIM_type; /* always T_UNBIND_REQ */
-};
-
-/* unitdata request */
-
-struct T_unitdata_req {
- long PRIM_type; /* always T_UNITDATA_REQ */
- long DEST_length; /* dest addr length */
- long DEST_offset; /* dest addr offset */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
-};
-
-/* manage options request */
-
-struct T_optmgmt_req {
- long PRIM_type; /* always T_OPTMGMT_REQ */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
- long MGMT_flags; /* options flags */
-};
-
-/* orderly release request */
-
-struct T_ordrel_req {
- long PRIM_type; /* always T_ORDREL_REQ */
-};
-
-/* connect indication */
-
-struct T_conn_ind {
- long PRIM_type; /* always T_CONN_IND */
- long SRC_length; /* src addr length */
- long SRC_offset; /* src addr offset */
- long OPT_length; /* option length */
- long OPT_offset; /* option offset */
- long SEQ_number; /* sequnce number */
-};
-
-/* connect confirmation */
-
-struct T_conn_con {
- long PRIM_type; /* always T_CONN_CON */
- long RES_length; /* responding addr length */
- long RES_offset; /* responding addr offset */
- long OPT_length; /* option length */
- long OPT_offset; /* option offset */
-};
-
-/* disconnect indication */
-
-struct T_discon_ind {
- long PRIM_type; /* always T_DISCON_IND */
- long DISCON_reason; /* disconnect reason */
- long SEQ_number; /* sequnce number */
-};
-
-/* data indication */
-
-struct T_data_ind {
- long PRIM_type; /* always T_DATA_IND */
- long MORE_flag; /* more data */
-};
-
-/* expedited data indication */
-
-struct T_exdata_ind {
- long PRIM_type; /* always T_EXDATA_IND */
- long MORE_type; /* more data */
-};
-
-/* information acknowledgment */
-
-struct T_info_ack {
- long PRIM_type; /* always T_INFO_ACK */
- long TSDU_size; /* max TSDU size */
- long ETSDU_size; /* max ETSDU size */
- long CDATA_size; /* max connect data size */
- long DDATA_size; /* max discon data size */
- long ADDR_size; /* address size */
- long OPT_size; /* options size */
- long TIDU_size; /* max TIDU size */
- long SERV_type; /* provider service type */
- long CURRENT_state; /* current state */
-};
-
-/* bind acknowledgment */
-
-struct T_bind_ack {
- long PRIM_type; /* always T_BIND_ACK */
- long ADDR_length; /* addr length */
- long ADDR_offset; /* addr offset */
- unsigned long CONIND_number; /* connect ind to be queued */
-};
-
-/* error acknowledgment */
-
-struct T_error_ack {
- long PRIM_type; /* always T_ERROR_ACK */
- long ERROR_prim; /* primitive in error */
- long TLI_error; /* TLI error code */
- long UNIX_error; /* UNIX error code */
-};
-
-/* ok acknowledgment */
-
-struct T_ok_ack {
- long PRIM_type; /* always T_OK_ACK */
- long CORRECT_prim; /* correct primitive */
-};
-
-/* unitdata indication */
-
-struct T_unitdata_ind {
- long PRIM_type; /* always T_UNITDATA_IND */
- long SRC_length; /* source addr length */
- long SRC_offset; /* source addr offset */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
-};
-
-/* unitdata error indication */
-
-struct T_uderror_ind {
- long PRIM_type; /* always T_UDERROR_IND */
- long DEST_length; /* dest addr length */
- long DEST_offset; /* dest addr offset */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
- long ERROR_type; /* error type */
-};
-
-/* manage options ack */
-
-struct T_optmgmt_ack {
- long PRIM_type; /* always T_OPTMGMT_ACK */
- long OPT_length; /* options length */
- long OPT_offset; /* options offset */
- long MGMT_flags; /* managment flags */
-};
-
-/* orderly release indication */
-
-struct T_ordrel_ind {
- long PRIM_type; /* always T_ORDREL_IND */
-};
-
-/*
- * The following is a union of the primitives
- */
-union T_primitives {
- long type; /* primitive type */
- struct T_conn_req conn_req; /* connect request */
- struct T_conn_res conn_res; /* connect response */
- struct T_discon_req discon_req; /* disconnect request */
- struct T_data_req data_req; /* data request */
- struct T_exdata_req exdata_req; /* expedited data req */
- struct T_info_req info_req; /* information req */
- struct T_bind_req bind_req; /* bind request */
- struct T_unbind_req unbind_req; /* unbind request */
- struct T_unitdata_req unitdata_req; /* unitdata requset */
- struct T_optmgmt_req optmgmt_req; /* manage opt req */
- struct T_ordrel_req ordrel_req; /* orderly rel req */
- struct T_conn_ind conn_ind; /* connect indication */
- struct T_conn_con conn_con; /* connect corfirm */
- struct T_discon_ind discon_ind; /* discon indication */
- struct T_data_ind data_ind; /* data indication */
- struct T_exdata_ind exdata_ind; /* expedited data ind */
- struct T_info_ack info_ack; /* info ack */
- struct T_bind_ack bind_ack; /* bind ack */
- struct T_error_ack error_ack; /* error ack */
- struct T_ok_ack ok_ack; /* ok ack */
- struct T_unitdata_ind unitdata_ind; /* unitdata ind */
- struct T_uderror_ind uderror_ind; /* unitdata error ind */
- struct T_optmgmt_ack optmgmt_ack; /* manage opt ack */
- struct T_ordrel_ind ordrel_ind; /* orderly rel ind */
-};
-
-#endif /*!_nettli_tihdr_h*/
diff --git a/usr/src/lib/libbc/inc/include/nettli/timod.h b/usr/src/lib/libbc/inc/include/nettli/timod.h
deleted file mode 100644
index f5c5663df0..0000000000
--- a/usr/src/lib/libbc/inc/include/nettli/timod.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* from S5R3 sys/timod.h 10.3.1.1" */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1984 AT&T */
-/* All Rights Reserved */
-
-
-/* #ident "@(#)kern-port:sys/timod.h 10.3.1.1" */
-
-#ifndef _nettli_timod_h
-#define _nettli_timod_h
-
-/* internal flags */
-#define USED 0x01 /* data structure in use */
-#define FATAL 0x02 /* fatal error M_ERROR occurred */
-#define WAITIOCACK 0x04 /* waiting for info for ioctl act */
-#define MORE 0x08 /* more data */
-
-
-
-/* timod ioctls */
-#define TIMOD ('T'<<8)
-#define TI_GETINFO (TIMOD|100)
-#define TI_OPTMGMT (TIMOD|101)
-#define TI_BIND (TIMOD|102)
-#define TI_UNBIND (TIMOD|103)
-
-
-/* TI interface user level structure - one per open file */
-
-struct _ti_user {
- ushort ti_flags; /* flags */
- int ti_rcvsize; /* rcv buffer size */
- char *ti_rcvbuf; /* rcv buffer */
- int ti_ctlsize; /* ctl buffer size */
- char *ti_ctlbuf; /* ctl buffer */
- char *ti_lookdbuf; /* look data buffer */
- char *ti_lookcbuf; /* look ctl buffer */
- int ti_lookdsize; /* look data buf size */
- int ti_lookcsize; /* look ctl buf size */
- int ti_maxpsz; /* TIDU size */
- long ti_servtype; /* service type */
- int ti_lookflg; /* buffered look flag */
-};
-
-
-/* This should be replaced */
-#define OPENFILES getdtablesize()
-
-#endif /*!_nettli_timod_h*/
diff --git a/usr/src/lib/libbc/inc/include/nettli/tiuser.h b/usr/src/lib/libbc/inc/include/nettli/tiuser.h
deleted file mode 100644
index 71b9c89132..0000000000
--- a/usr/src/lib/libbc/inc/include/nettli/tiuser.h
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* from S5R3 sys/tiuser.h 10.2.1.1" */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1984 AT&T */
-/* All Rights Reserved */
-
-
-/* #ident "@(#)kern-port:sys/tiuser.h 10.2.1.1" */
-
-#ifndef _nettli_tiuser_h
-#define _nettli_tiuser_h
-
-/*
- * The following are the error codes needed by both the kernel
- * level transport providers and the user level library.
- */
-#define TBADADDR 1 /* incorrect addr format */
-#define TBADOPT 2 /* incorrect option format */
-#define TACCES 3 /* incorrect permissions */
-#define TBADF 4 /* illegal transport fd */
-#define TNOADDR 5 /* couldn't allocate addr */
-#define TOUTSTATE 6 /* out of state */
-#define TBADSEQ 7 /* bad call sequnce number */
-#define TSYSERR 8 /* system error */
-#define TLOOK 9 /* event requires attention */
-#define TBADDATA 10 /* illegal amount of data */
-#define TBUFOVFLW 11 /* buffer not large enough */
-#define TFLOW 12 /* flow control */
-#define TNODATA 13 /* no data */
-#define TNODIS 14 /* discon_ind not found on q */
-#define TNOUDERR 15 /* unitdata error not found */
-#define TBADFLAG 16 /* bad flags */
-#define TNOREL 17 /* no ord rel found on q */
-#define TNOTSUPPORT 18 /* primitive not supported */
-#define TSTATECHNG 19 /* state is in process of changing */
-
-/*
- * The following are the events returned by t_look
- */
-#define T_LISTEN 0x0001 /* connection indication received */
-#define T_CONNECT 0x0002 /* connect confirmation received */
-#define T_DATA 0x0004 /* normal data received */
-#define T_EXDATA 0x0008 /* expedited data received */
-#define T_DISCONNECT 0x0010 /* disconnect received */
-#define T_ERROR 0x0020 /* fatal error occurred */
-#define T_UDERR 0x0040 /* data gram error indication */
-#define T_ORDREL 0x0080 /* orderly release indication */
-#define T_EVENTS 0x00ff /* event mask */
-
-/*
- * The following are the flag definitions needed by the
- * user level library routines.
- */
-
-#define T_MORE 0x001 /* more data */
-#define T_EXPEDITED 0x002 /* expedited data */
-#define T_NEGOTIATE 0x004 /* set opts */
-#define T_CHECK 0x008 /* check opts */
-#define T_DEFAULT 0x010 /* get default opts */
-#define T_SUCCESS 0x020 /* successful */
-#define T_FAILURE 0x040 /* failure */
-
-/*
- * protocol specific service limits
- */
-
-struct t_info {
- long addr; /* size of protocol address */
- long options; /* size of protocol options */
- long tsdu; /* size of max transport service data unit */
- long etsdu; /* size of max expedited tsdu */
- long connect; /* max data for connection primitives */
- long discon; /* max data for disconnect primitives */
- long servtype; /* provider service type */
-};
-
-/*
- * Service type defines
- */
-#define T_COTS 01 /* connection oriented transport service */
-#define T_COTS_ORD 02 /* connection oriented w/ orderly release */
-#define T_CLTS 03 /* connectionless transport service */
-
-/*
- * netbuf structure
- */
-
-struct netbuf {
- unsigned int maxlen;
- unsigned int len;
- char *buf;
-};
-
-/*
- * t_bind - format of the addres and options arguments of bind
- */
-
-struct t_bind {
- struct netbuf addr;
- unsigned qlen;
-};
-
-/*
- * options management
- */
-struct t_optmgmt {
- struct netbuf opt;
- long flags;
-};
-
-/*
- * disconnect structure
- */
-struct t_discon {
- struct netbuf udata; /* user data */
- int reason; /* reason code */
- int sequence; /* sequence number */
-};
-
-/*
- * call structure
- */
-struct t_call {
- struct netbuf addr; /* address */
- struct netbuf opt; /* options */
- struct netbuf udata; /* user data */
- int sequence; /* sequence number */
-};
-
-/*
- * data gram structure
- */
-struct t_unitdata {
- struct netbuf addr; /* address */
- struct netbuf opt; /* options */
- struct netbuf udata; /* user data */
-};
-
-/*
- * unitdata error
- */
-struct t_uderr {
- struct netbuf addr; /* address */
- struct netbuf opt; /* options */
- long error; /* error code */
-};
-
-/*
- * The following are structure types used when dynamically
- * allocating the above structures via t_structalloc().
- */
-#define T_BIND 1 /* struct t_bind */
-#define T_OPTMGMT 2 /* struct t_optmgmt */
-#define T_CALL 3 /* struct t_call */
-#define T_DIS 4 /* struct t_discon */
-#define T_UNITDATA 5 /* struct t_unitdata */
-#define T_UDERROR 6 /* struct t_uderr */
-#define T_INFO 7 /* struct t_info */
-
-/*
- * The following bits specify which fields of the above
- * structures should be allocated by t_structalloc().
- */
-#define T_ADDR 0x01 /* address */
-#define T_OPT 0x02 /* options */
-#define T_UDATA 0x04 /* user data */
-#define T_ALL 0x07 /* all the above */
-
-
-/*
- * the following are the states for the user
- */
-
-#define T_UNINIT 0 /* uninitialized */
-#define T_UNBND 1 /* unbound */
-#define T_IDLE 2 /* idle */
-#define T_OUTCON 3 /* outgoing connection pending */
-#define T_INCON 4 /* incoming connection pending */
-#define T_DATAXFER 5 /* data transfer */
-#define T_OUTREL 6 /* outgoing release pending */
-#define T_INREL 7 /* incoming release pending */
-
-#define T_NOSTATES 8
-
-
-
-#define ROUNDUP(X) ((X + 0x03)&~0x03)
-
-/*
- * Macro for converting signal number to a mask suitable for
- * sigblock().
- */
-#define sigmask(m) (1 << ((m)-1))
-
-#endif /*!_nettli_tiuser_h*/