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 #pragma ident "%Z%%M% %I% %E% SMI" 43 44 #include <netconfig.h> 45 46 #ifdef __cplusplus 47 extern "C" { 48 #endif 49 50 #define _RPC_NONE 0 51 #define _RPC_NETPATH 1 52 #define _RPC_VISIBLE 2 53 #define _RPC_CIRCUIT_V 3 54 #define _RPC_DATAGRAM_V 4 55 #define _RPC_CIRCUIT_N 5 56 #define _RPC_DATAGRAM_N 6 57 #define _RPC_TCP 7 58 #define _RPC_UDP 8 59 #define _RPC_LOCAL 9 60 #define _RPC_DOOR 10 61 #define _RPC_DOOR_LOCAL 11 62 #define _RPC_DOOR_NETPATH 12 63 64 #ifdef __STDC__ 65 extern void *__rpc_setconf(char *); 66 extern void __rpc_endconf(void *); 67 extern struct netconfig *__rpc_getconf(void *); 68 extern struct netconfig *__rpc_getconfip(char *); 69 #else 70 extern void *__rpc_setconf(); 71 extern void __rpc_endconf(); 72 extern struct netconfig *__rpc_getconf(); 73 extern struct netconfig *__rpc_getconfip(); 74 #endif 75 76 #ifdef __cplusplus 77 } 78 #endif 79 80 #endif /* !_RPC_NETTYPE_H */ 81