xref: /illumos-gate/usr/src/uts/common/rpc/nettype.h (revision 2d6eb4a5e0a47d30189497241345dc5466bb68ab)
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  * Copyright 1996 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
26 /* All Rights Reserved */
27 /*
28  * Portions of this source code were derived from Berkeley
29  * 4.3 BSD under license from the Regents of the University of
30  * California.
31  */
32 
33 /*
34  * nettype.h, Nettype definitions.
35  * All for the topmost layer of rpc
36  *
37  */
38 
39 #ifndef	_RPC_NETTYPE_H
40 #define	_RPC_NETTYPE_H
41 
42 #include <netconfig.h>
43 
44 #ifdef	__cplusplus
45 extern "C" {
46 #endif
47 
48 #define	_RPC_NONE		0
49 #define	_RPC_NETPATH		1
50 #define	_RPC_VISIBLE		2
51 #define	_RPC_CIRCUIT_V		3
52 #define	_RPC_DATAGRAM_V		4
53 #define	_RPC_CIRCUIT_N		5
54 #define	_RPC_DATAGRAM_N		6
55 #define	_RPC_TCP		7
56 #define	_RPC_UDP		8
57 #define	_RPC_LOCAL		9
58 #define	_RPC_DOOR		10
59 #define	_RPC_DOOR_LOCAL		11
60 #define	_RPC_DOOR_NETPATH	12
61 
62 #ifdef __STDC__
63 extern void *__rpc_setconf(char *);
64 extern void __rpc_endconf(void *);
65 extern struct netconfig *__rpc_getconf(void *);
66 extern struct netconfig *__rpc_getconfip(char *);
67 #else
68 extern void *__rpc_setconf();
69 extern void __rpc_endconf();
70 extern struct netconfig *__rpc_getconf();
71 extern struct netconfig *__rpc_getconfip();
72 #endif
73 
74 #ifdef	__cplusplus
75 }
76 #endif
77 
78 #endif	/* !_RPC_NETTYPE_H */
79