summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/krpc.h
blob: 6c889b57f77cf160752723a148e2d8cd899edc6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*	$NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $	*/
/* $FreeBSD$	*/

#include <sys/cdefs.h>

struct mbuf;
struct proc;
struct sockaddr;
struct sockaddr_in;

int krpc_call __P((struct sockaddr_in *_sin,
	u_int prog, u_int vers, u_int func,
	struct mbuf **data, struct sockaddr **from, struct proc *procp));

int krpc_portmap __P((struct sockaddr_in *_sin,
	u_int prog, u_int vers, u_int16_t *portp,struct proc *procp));

struct mbuf *xdr_string_encode __P((char *str, int len));

/*
 * RPC definitions for the portmapper
 */
#define	PMAPPORT		111
#define	PMAPPROG		100000
#define	PMAPVERS		2
#define	PMAPPROC_NULL		0
#define	PMAPPROC_SET		1
#define	PMAPPROC_UNSET		2
#define	PMAPPROC_GETPORT	3
#define	PMAPPROC_DUMP		4
#define	PMAPPROC_CALLIT		5
OpenPOWER on IntegriCloud