nettype.h revision 177633
1177633Sdfr/* $NetBSD: nettype.h,v 1.2 2000/07/06 03:17:19 christos Exp $ */ 2177633Sdfr/* $FreeBSD: head/sys/rpc/nettype.h 177633 2008-03-26 15:23:12Z dfr $ */ 3177633Sdfr 4177633Sdfr/* 5177633Sdfr * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 6177633Sdfr * unrestricted use provided that this legend is included on all tape 7177633Sdfr * media and as a part of the software program in whole or part. Users 8177633Sdfr * may copy or modify Sun RPC without charge, but are not authorized 9177633Sdfr * to license or distribute it to anyone else except as part of a product or 10177633Sdfr * program developed by the user. 11177633Sdfr * 12177633Sdfr * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 13177633Sdfr * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 14177633Sdfr * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 15177633Sdfr * 16177633Sdfr * Sun RPC is provided with no support and without any obligation on the 17177633Sdfr * part of Sun Microsystems, Inc. to assist in its use, correction, 18177633Sdfr * modification or enhancement. 19177633Sdfr * 20177633Sdfr * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 21177633Sdfr * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 22177633Sdfr * OR ANY PART THEREOF. 23177633Sdfr * 24177633Sdfr * In no event will Sun Microsystems, Inc. be liable for any lost revenue 25177633Sdfr * or profits or other special, indirect and consequential damages, even if 26177633Sdfr * Sun has been advised of the possibility of such damages. 27177633Sdfr * 28177633Sdfr * Sun Microsystems, Inc. 29177633Sdfr * 2550 Garcia Avenue 30177633Sdfr * Mountain View, California 94043 31177633Sdfr */ 32177633Sdfr/* 33177633Sdfr * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 34177633Sdfr */ 35177633Sdfr 36177633Sdfr/* 37177633Sdfr * nettype.h, Nettype definitions. 38177633Sdfr * All for the topmost layer of rpc 39177633Sdfr * 40177633Sdfr */ 41177633Sdfr 42177633Sdfr#ifndef _RPC_NETTYPE_H 43177633Sdfr#define _RPC_NETTYPE_H 44177633Sdfr 45177633Sdfr#ifdef _KERNEL 46177633Sdfr#include <rpc/netconfig.h> 47177633Sdfr#else 48177633Sdfr#include <netconfig.h> 49177633Sdfr#endif 50177633Sdfr 51177633Sdfr#define _RPC_NONE 0 52177633Sdfr#define _RPC_NETPATH 1 53177633Sdfr#define _RPC_VISIBLE 2 54177633Sdfr#define _RPC_CIRCUIT_V 3 55177633Sdfr#define _RPC_DATAGRAM_V 4 56177633Sdfr#define _RPC_CIRCUIT_N 5 57177633Sdfr#define _RPC_DATAGRAM_N 6 58177633Sdfr#define _RPC_TCP 7 59177633Sdfr#define _RPC_UDP 8 60177633Sdfr 61177633Sdfr__BEGIN_DECLS 62177633Sdfrextern void *__rpc_setconf(const char *); 63177633Sdfrextern void __rpc_endconf(void *); 64177633Sdfrextern struct netconfig *__rpc_getconf(void *); 65177633Sdfrextern struct netconfig *__rpc_getconfip(const char *); 66177633Sdfr__END_DECLS 67177633Sdfr 68177633Sdfr#endif /* !_RPC_NETTYPE_H */ 69