freebsd-dev/sys/nfs/krpc.h
Rick Macklem 7c208ed659 Fix the experimental NFS client so that it does not bogusly
set the f_flags field of "struct statfs". This had the interesting
effect of making the NFSv4 mounts "disappear" after r221014,
since NFSMNT_NFSV4 and MNT_IGNORE became the same bit.
Move the files used for a diskless NFS root from sys/nfsclient
to sys/nfs in preparation for them to be used by both NFS
clients. Also, move the declaration of the three global data
structures from sys/nfsclient/nfs_vfsops.c to sys/nfs/nfs_diskless.c
so that they are defined when either client uses them.

Reviewed by:	jhb
MFC after:	2 weeks
2011-04-25 22:22:51 +00:00

32 lines
734 B
C

/* $NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $ */
/* $FreeBSD$ */
#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