xref: /illumos-gate/usr/src/uts/common/sys/xti_xtiopt.h (revision 7a6d80f1660abd4755c68cbd094d4a914681d26e)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _SYS_XTI_XTIOPT_H
28 #define	_SYS_XTI_XTIOPT_H
29 
30 #include <sys/types.h>
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 
37 /*
38  * OPTIONS ON XTI LEVEL
39  *
40  * Note:
41  * Unfortunately, XTI specification test assertions require exposing in
42  * headers options that are not implemented. They also require exposing
43  * Internet and OSI related options as part of inclusion of <xti.h>
44  */
45 
46 /* XTI level */
47 
48 #define	XTI_GENERIC	0xfffe
49 
50 /*
51  * XTI-level Options
52  */
53 
54 #define	XTI_DEBUG		0x0001 /* enable debugging */
55 #define	XTI_LINGER		0x0080 /* linger on close if data present */
56 #define	XTI_RCVBUF		0x1002 /* receive buffer size */
57 #define	XTI_RCVLOWAT		0x1004 /* receive low water mark */
58 #define	XTI_SNDBUF		0x1001 /* send buffer size */
59 #define	XTI_SNDLOWAT		0x1003 /* send low-water mark */
60 
61 
62 /*
63  * Structure used with linger option.
64  */
65 
66 struct t_linger {
67 	t_scalar_t	l_onoff;	/* option on/off */
68 	t_scalar_t	l_linger;	/* linger time */
69 };
70 
71 
72 #ifdef	__cplusplus
73 }
74 #endif
75 
76 #endif	/* _SYS_XTI_XTIOPT_H */
77