xref: /freebsd/sys/nfs/krpc.h (revision 5e3190f700637fcfc1a52daeaa4a031fdd2557c7)
1 /*	$NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $	*/
2 
3 #include <sys/cdefs.h>
4 
5 struct mbuf;
6 struct thread;
7 struct sockaddr;
8 struct sockaddr_in;
9 
10 int krpc_call(struct sockaddr_in *_sin,
11 	u_int prog, u_int vers, u_int func,
12 	struct mbuf **data, struct sockaddr **from, struct thread *td);
13 
14 int krpc_portmap(struct sockaddr_in *_sin,
15 	u_int prog, u_int vers, u_int16_t *portp, struct thread *td);
16 
17 struct mbuf *xdr_string_encode(char *str, int len);
18 
19 /*
20  * RPC definitions for the portmapper
21  */
22 #define	PMAPPORT		111
23 #define	PMAPPROG		100000
24 #define	PMAPVERS		2
25 #define	PMAPPROC_NULL		0
26 #define	PMAPPROC_SET		1
27 #define	PMAPPROC_UNSET		2
28 #define	PMAPPROC_GETPORT	3
29 #define	PMAPPROC_DUMP		4
30 #define	PMAPPROC_CALLIT		5
31