diff options
author | Doug Rabson <dfr@FreeBSD.org> | 2009-06-30 19:03:27 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 2009-06-30 19:03:27 +0000 |
commit | b49a2b39fdac2fd3489a6e579946c87104a51f33 (patch) | |
tree | b34567acfe860cb1978c433954c8376efa8a9fbb /sys/nfsclient/bootp_subr.c | |
parent | 58c6a70a527beb469f4cf5ba945da36118af1598 (diff) | |
download | src-b49a2b39fdac2fd3489a6e579946c87104a51f33.tar.gz src-b49a2b39fdac2fd3489a6e579946c87104a51f33.zip |
Remove the old kernel RPC implementation and the NFS_LEGACYRPC option.
Approved by: re
Notes
Notes:
svn path=/head/; revision=195202
Diffstat (limited to 'sys/nfsclient/bootp_subr.c')
-rw-r--r-- | sys/nfsclient/bootp_subr.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 10fc8c4f06c3..4a4847acc203 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -68,7 +68,6 @@ __FBSDID("$FreeBSD$"); #include <net/if_dl.h> #include <net/vnet.h> -#include <nfs/rpcv2.h> #include <nfs/nfsproto.h> #include <nfsclient/nfs.h> #include <nfsclient/nfsdiskless.h> @@ -1776,6 +1775,13 @@ md_mount(struct sockaddr_in *mdsin, char *path, u_char *fhp, int *fhsizep, int authcount; int authver; +#define RPCPROG_MNT 100005 +#define RPCMNT_VER1 1 +#define RPCMNT_VER3 3 +#define RPCMNT_MOUNT 1 +#define AUTH_SYS 1 /* unix style (uid, gids) */ +#define AUTH_UNIX AUTH_SYS + /* XXX honor v2/v3 flags in args->flags? */ #ifdef BOOTP_NFSV3 /* First try NFS v3 */ @@ -1836,7 +1842,7 @@ md_mount(struct sockaddr_in *mdsin, char *path, u_char *fhp, int *fhsizep, while (authcount > 0) { if (xdr_int_decode(&m, &authver) != 0) goto bad; - if (authver == RPCAUTH_UNIX) + if (authver == AUTH_UNIX) authunixok = 1; authcount--; } |