/*
* 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
* 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 {
};
/*
* No connection assoicated with this socket
*/
/*
* This socket is connected or pending connection
*/
/*
* 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. */
};
/*
* Flag (tt_flags) bits private to the driver.
*/
/*
* Event (tt_event) bits private to the driver.
*/
/*
* Internet style address for TLI
*/
struct taddr_in {
short sin_family;
};
/*
* 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
*/
extern int tcptli_auxproc_running; \
(!tcptli_auxproc_running)) \
if (tcptli_Ercv((ttp))) \
return; \
}
#ifdef TLIDEBUG
extern tcptli_debug;
#else
#define TCPTLI_PRINTF
#endif /* TLIDEBUG */
#endif /* _TCP_TLIVAR_ */