nettype.h revision 177633
124114Smpp/* $NetBSD: nettype.h,v 1.2 2000/07/06 03:17:19 christos Exp $ */ 224114Smpp/* $FreeBSD: head/sys/rpc/nettype.h 177633 2008-03-26 15:23:12Z dfr $ */ 324114Smpp 424114Smpp/* 524114Smpp * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 624114Smpp * unrestricted use provided that this legend is included on all tape 724114Smpp * media and as a part of the software program in whole or part. Users 824114Smpp * may copy or modify Sun RPC without charge, but are not authorized 924114Smpp * to license or distribute it to anyone else except as part of a product or 1024114Smpp * program developed by the user. 1124114Smpp * 1224114Smpp * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 1324114Smpp * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1424114Smpp * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. 1524114Smpp * 1624114Smpp * Sun RPC is provided with no support and without any obligation on the 1724114Smpp * part of Sun Microsystems, Inc. to assist in its use, correction, 1824114Smpp * modification or enhancement. 1924114Smpp * 2024114Smpp * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 2124114Smpp * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 2224114Smpp * OR ANY PART THEREOF. 2324114Smpp * 2424114Smpp * In no event will Sun Microsystems, Inc. be liable for any lost revenue 2524114Smpp * or profits or other special, indirect and consequential damages, even if 2624114Smpp * Sun has been advised of the possibility of such damages. 2724114Smpp * 2824114Smpp * Sun Microsystems, Inc. 2924114Smpp * 2550 Garcia Avenue 3024114Smpp * Mountain View, California 94043 3124114Smpp */ 3250476Speter/* 3348795Snik * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 34135366Sbrooks */ 3524114Smpp 3679538Sru/* 3724114Smpp * nettype.h, Nettype definitions. 3824114Smpp * All for the topmost layer of rpc 39135366Sbrooks * 40135366Sbrooks */ 4124114Smpp 4224114Smpp#ifndef _RPC_NETTYPE_H 43140140Sru#define _RPC_NETTYPE_H 44140140Sru 45140140Sru#ifdef _KERNEL 46156221Sru#include <rpc/netconfig.h> 47156221Sru#else 4824114Smpp#include <netconfig.h> 4924114Smpp#endif 5024114Smpp 51121385Shmp#define _RPC_NONE 0 5224114Smpp#define _RPC_NETPATH 1 5324114Smpp#define _RPC_VISIBLE 2 54135366Sbrooks#define _RPC_CIRCUIT_V 3 55135366Sbrooks#define _RPC_DATAGRAM_V 4 56135366Sbrooks#define _RPC_CIRCUIT_N 5 57135366Sbrooks#define _RPC_DATAGRAM_N 6 5824114Smpp#define _RPC_TCP 7 5924114Smpp#define _RPC_UDP 8 60140140Sru 61140140Sru__BEGIN_DECLS 6224114Smppextern void *__rpc_setconf(const char *); 6324114Smppextern void __rpc_endconf(void *); 64140598Sruextern struct netconfig *__rpc_getconf(void *); 65135366Sbrooksextern struct netconfig *__rpc_getconfip(const char *); 66135366Sbrooks__END_DECLS 67135366Sbrooks 68135366Sbrooks#endif /* !_RPC_NETTYPE_H */ 69135366Sbrooks