1177633Sdfr/*	$NetBSD: nettype.h,v 1.2 2000/07/06 03:17:19 christos Exp $	*/
2177633Sdfr/*	$FreeBSD$ */
3177633Sdfr
4261057Smav/*-
5261057Smav * Copyright (c) 2009, Sun Microsystems, Inc.
6261057Smav * All rights reserved.
7177633Sdfr *
8261057Smav * Redistribution and use in source and binary forms, with or without
9261057Smav * modification, are permitted provided that the following conditions are met:
10261057Smav * - Redistributions of source code must retain the above copyright notice,
11261057Smav *   this list of conditions and the following disclaimer.
12261057Smav * - Redistributions in binary form must reproduce the above copyright notice,
13261057Smav *   this list of conditions and the following disclaimer in the documentation
14261057Smav *   and/or other materials provided with the distribution.
15261057Smav * - Neither the name of Sun Microsystems, Inc. nor the names of its
16261057Smav *   contributors may be used to endorse or promote products derived
17261057Smav *   from this software without specific prior written permission.
18261057Smav *
19261057Smav * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20261057Smav * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21261057Smav * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22261057Smav * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23261057Smav * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24261057Smav * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25261057Smav * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26261057Smav * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27261057Smav * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28261057Smav * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29261057Smav * POSSIBILITY OF SUCH DAMAGE.
30177633Sdfr */
31177633Sdfr/*
32177633Sdfr * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
33177633Sdfr */
34177633Sdfr
35177633Sdfr/*
36177633Sdfr * nettype.h, Nettype definitions.
37177633Sdfr * All for the topmost layer of rpc
38177633Sdfr *
39177633Sdfr */
40177633Sdfr
41177633Sdfr#ifndef	_RPC_NETTYPE_H
42177633Sdfr#define	_RPC_NETTYPE_H
43177633Sdfr
44177633Sdfr#ifdef _KERNEL
45177633Sdfr#include <rpc/netconfig.h>
46177633Sdfr#else
47177633Sdfr#include <netconfig.h>
48177633Sdfr#endif
49177633Sdfr
50177633Sdfr#define	_RPC_NONE	0
51177633Sdfr#define	_RPC_NETPATH	1
52177633Sdfr#define	_RPC_VISIBLE	2
53177633Sdfr#define	_RPC_CIRCUIT_V	3
54177633Sdfr#define	_RPC_DATAGRAM_V	4
55177633Sdfr#define	_RPC_CIRCUIT_N	5
56177633Sdfr#define	_RPC_DATAGRAM_N	6
57177633Sdfr#define	_RPC_TCP	7
58177633Sdfr#define	_RPC_UDP	8
59177633Sdfr
60177633Sdfr__BEGIN_DECLS
61177633Sdfrextern void *__rpc_setconf(const char *);
62177633Sdfrextern void __rpc_endconf(void *);
63177633Sdfrextern struct netconfig *__rpc_getconf(void *);
64177633Sdfrextern struct netconfig *__rpc_getconfip(const char *);
65177633Sdfr__END_DECLS
66177633Sdfr
67177633Sdfr#endif	/* !_RPC_NETTYPE_H */
68