/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* onc720 src/oncplus/usr/include/tirpc/rpc/nettype.h 1.3.1.2             */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1996,2012              */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/*
 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
 */

/*
 * nettype.h, Nettype definitions.
 * All for the topmost layer of rpc
 *
 */

#ifndef	_RPC_NETTYPE_H
#define	_RPC_NETTYPE_H

/* #pragma ident	"@(#)nettype.h	1.12	96/06/04 SMI" */

#include <netconfig.h>

#ifdef	__cplusplus
extern "C" {
#endif

#define	_RPC_NONE		0
#define	_RPC_NETPATH		1
#define	_RPC_VISIBLE		2
#define	_RPC_CIRCUIT_V		3
#define	_RPC_DATAGRAM_V		4
#define	_RPC_CIRCUIT_N		5
#define	_RPC_DATAGRAM_N		6
#define	_RPC_TCP		7
#define	_RPC_UDP		8
#define	_RPC_LOCAL		9
#define	_RPC_DOOR		10
#define	_RPC_DOOR_LOCAL		11
#define	_RPC_DOOR_NETPATH	12

extern void *__rpc_setconf(char *);
extern void __rpc_endconf(void *);
extern struct netconfig *__rpc_getconf(void *);
extern struct netconfig *__rpc_getconf2(void *);
extern struct netconfig *__rpc_getconfip(char *);
extern struct netconfig *__rpc_getconfip_fam(char *, sa_family_t);

/* IPv4 and IPv6 sockaddr union */
union nsl_sockaddr_in_all {
	struct sockaddr		sock;
	struct sockaddr_in	sock4;
	struct sockaddr_in6	sock6;
};
typedef union nsl_sockaddr_in_all nsl_sockaddr_in_all_t;

#ifdef	__cplusplus
}
#endif

#endif	/* !_RPC_NETTYPE_H */
