xref: /freebsd/include/rpc/nettype.h (revision 2a63c3be158216222d89a073dcbd6a72ee4aab5a)
18360efbdSAlfred Perlstein /*	$NetBSD: nettype.h,v 1.2 2000/07/06 03:17:19 christos Exp $	*/
28360efbdSAlfred Perlstein 
32e322d37SHiroki Sato /*-
4*2321c474SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
5*2321c474SPedro F. Giffuni  *
62e322d37SHiroki Sato  * Copyright (c) 2009, Sun Microsystems, Inc.
72e322d37SHiroki Sato  * All rights reserved.
88360efbdSAlfred Perlstein  *
92e322d37SHiroki Sato  * Redistribution and use in source and binary forms, with or without
102e322d37SHiroki Sato  * modification, are permitted provided that the following conditions are met:
112e322d37SHiroki Sato  * - Redistributions of source code must retain the above copyright notice,
122e322d37SHiroki Sato  *   this list of conditions and the following disclaimer.
132e322d37SHiroki Sato  * - Redistributions in binary form must reproduce the above copyright notice,
142e322d37SHiroki Sato  *   this list of conditions and the following disclaimer in the documentation
152e322d37SHiroki Sato  *   and/or other materials provided with the distribution.
162e322d37SHiroki Sato  * - Neither the name of Sun Microsystems, Inc. nor the names of its
172e322d37SHiroki Sato  *   contributors may be used to endorse or promote products derived
182e322d37SHiroki Sato  *   from this software without specific prior written permission.
198360efbdSAlfred Perlstein  *
202e322d37SHiroki Sato  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
212e322d37SHiroki Sato  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
222e322d37SHiroki Sato  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
232e322d37SHiroki Sato  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
242e322d37SHiroki Sato  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
252e322d37SHiroki Sato  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
262e322d37SHiroki Sato  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
272e322d37SHiroki Sato  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
282e322d37SHiroki Sato  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
292e322d37SHiroki Sato  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
302e322d37SHiroki Sato  * POSSIBILITY OF SUCH DAMAGE.
318360efbdSAlfred Perlstein  */
328360efbdSAlfred Perlstein /*
338360efbdSAlfred Perlstein  * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
348360efbdSAlfred Perlstein  */
358360efbdSAlfred Perlstein 
368360efbdSAlfred Perlstein /*
378360efbdSAlfred Perlstein  * nettype.h, Nettype definitions.
388360efbdSAlfred Perlstein  * All for the topmost layer of rpc
398360efbdSAlfred Perlstein  *
408360efbdSAlfred Perlstein  */
418360efbdSAlfred Perlstein 
428360efbdSAlfred Perlstein #ifndef	_RPC_NETTYPE_H
438360efbdSAlfred Perlstein #define	_RPC_NETTYPE_H
448360efbdSAlfred Perlstein 
458360efbdSAlfred Perlstein #include <netconfig.h>
468360efbdSAlfred Perlstein 
478360efbdSAlfred Perlstein #define	_RPC_NONE	0
488360efbdSAlfred Perlstein #define	_RPC_NETPATH	1
498360efbdSAlfred Perlstein #define	_RPC_VISIBLE	2
508360efbdSAlfred Perlstein #define	_RPC_CIRCUIT_V	3
518360efbdSAlfred Perlstein #define	_RPC_DATAGRAM_V	4
528360efbdSAlfred Perlstein #define	_RPC_CIRCUIT_N	5
538360efbdSAlfred Perlstein #define	_RPC_DATAGRAM_N	6
548360efbdSAlfred Perlstein #define	_RPC_TCP	7
558360efbdSAlfred Perlstein #define	_RPC_UDP	8
568360efbdSAlfred Perlstein 
578360efbdSAlfred Perlstein __BEGIN_DECLS
58bb28f3c2SWarner Losh extern void *__rpc_setconf(const char *);
59bb28f3c2SWarner Losh extern void __rpc_endconf(void *);
60bb28f3c2SWarner Losh extern struct netconfig *__rpc_getconf(void *);
61bb28f3c2SWarner Losh extern struct netconfig *__rpc_getconfip(const char *);
628360efbdSAlfred Perlstein __END_DECLS
638360efbdSAlfred Perlstein 
648360efbdSAlfred Perlstein #endif	/* !_RPC_NETTYPE_H */
65