From 7a8a5598222de9bf7dee998d45e2badb9fee017d Mon Sep 17 00:00:00 2001 From: Rick Macklem Date: Thu, 15 Oct 2009 19:50:00 +0000 Subject: [PATCH] MFC r197298: Change the default transport protocol for use by the Mount protocol and the NFS Null RPC done by mount_nfs from UDP to TCP, so that it is consistent with the kernel, which already uses NFS over TCP by default. Without this change, doing an NFS mount against a server that only supports UDP results in an unusable mount point if a transport protocol option wasn't specified for the mount. Approved by: re (kib) --- sbin/mount_nfs/mount_nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 9451fd763ce..7d4f3f65e1c 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -104,7 +104,7 @@ struct nfhret { #define OF_NOINET6 8 int retrycnt = -1; int opflags = 0; -int nfsproto = IPPROTO_UDP; +int nfsproto = IPPROTO_TCP; int mnttcp_ok = 1; int noconn = 0; char *portspec = NULL; /* Server nfs port; NULL means look up via rpcbind. */