xref: /titanic_50/usr/src/uts/common/sys/xti_xtiopt.h (revision 34f9b3eef6fdadbda0a846aa4d68691ac40eace5)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <sys/types.h>
33 
34 #ifdef	__cplusplus
35 extern "C" {
36 #endif
37 
38 
39 /*
40  * OPTIONS ON XTI LEVEL
41  *
42  * Note:
43  * Unfortunately, XTI specification test assertions require exposing in
44  * headers options that are not implemented. They also require exposing
45  * Internet and OSI related options as part of inclusion of <xti.h>
46  */
47 
48 /* XTI level */
49 
50 #define	XTI_GENERIC	0xfffe
51 
52 /*
53  * XTI-level Options
54  */
55 
56 #define	XTI_DEBUG		0x0001 /* enable debugging */
57 #define	XTI_LINGER		0x0080 /* linger on close if data present */
58 #define	XTI_RCVBUF		0x1002 /* receive buffer size */
59 #define	XTI_RCVLOWAT		0x1004 /* receive low water mark */
60 #define	XTI_SNDBUF		0x1001 /* send buffer size */
61 #define	XTI_SNDLOWAT		0x1003 /* send low-water mark */
62 
63 
64 /*
65  * Structure used with linger option.
66  */
67 
68 struct t_linger {
69 	t_scalar_t	l_onoff;	/* option on/off */
70 	t_scalar_t	l_linger;	/* linger time */
71 };
72 
73 
74 #ifdef	__cplusplus
75 }
76 #endif
77 
78 #endif	/* _SYS_XTI_XTIOPT_H */
79