NetBSD/sys/fs/nfs/common/krpc.h
dholland 6ca3558714 Import FreeBSD's "newnfs" nfs client and server code. This contains
nfsv4 as well as new implementations of nfsv3 and nfsv2.

This import is from tonight's FreeBSD head and is unchanged from there
except for automated munging of rcsids, rearranging of paths, and an
autogenerated files.* file that might or might not be syntactically
valid. (I will check in the script that does this shortly.)

There is not the slightest chance this will configure yet, let alone
compile or run.
2013-09-30 07:18:57 +00:00

33 lines
856 B
C

/* NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp */
/* FreeBSD: head/sys/nfs/krpc.h 221032 2011-04-25 22:22:51Z rmacklem */
/* $NetBSD: krpc.h,v 1.1.1.1 2013/09/30 07:19:31 dholland Exp $ */
#include <sys/cdefs.h>
struct mbuf;
struct thread;
struct sockaddr;
struct sockaddr_in;
int krpc_call(struct sockaddr_in *_sin,
u_int prog, u_int vers, u_int func,
struct mbuf **data, struct sockaddr **from, struct thread *td);
int krpc_portmap(struct sockaddr_in *_sin,
u_int prog, u_int vers, u_int16_t *portp, struct thread *td);
struct mbuf *xdr_string_encode(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