HAMMER 61E/Many: Stabilization, Performance
[dragonfly.git] / sys / vfs / nfs / krpc.h
blob070bdaaae37549141faa2fd0edddf87e509c0dc6
1 /* $NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $ */
2 /* $FreeBSD: src/sys/nfs/krpc.h,v 1.6 1999/08/28 00:49:55 peter Exp $ */
3 /* $DragonFly: src/sys/vfs/nfs/krpc.h,v 1.4 2003/08/20 09:56:32 rob Exp $ */
5 #include <sys/cdefs.h>
7 struct mbuf;
8 struct proc;
9 struct thread;
10 struct sockaddr;
11 struct sockaddr_in;
13 int krpc_call (struct sockaddr_in *_sin,
14 u_int prog, u_int vers, u_int func,
15 struct mbuf **data, struct sockaddr **from, struct thread *td);
17 int krpc_portmap (struct sockaddr_in *_sin,
18 u_int prog, u_int vers, u_int16_t *portp,struct thread *td);
20 struct mbuf *xdr_string_encode (char *str, int len);
23 * RPC definitions for the portmapper
25 #define PMAPPORT 111
26 #define PMAPPROG 100000
27 #define PMAPVERS 2
28 #define PMAPPROC_NULL 0
29 #define PMAPPROC_SET 1
30 #define PMAPPROC_UNSET 2
31 #define PMAPPROC_GETPORT 3
32 #define PMAPPROC_DUMP 4
33 #define PMAPPROC_CALLIT 5