diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2009-09-17 19:08:15 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2009-09-17 19:08:15 +0000 |
commit | 8a75936366d0a1583e36a6a760a704a21ac4855b (patch) | |
tree | 62d984333d4c7b5b019de8014af8d86dcf632366 /sbin | |
parent | a441f407c131c7ff6dfba3ac0a14014d29d99ecf (diff) | |
download | FreeBSD-src-8a75936366d0a1583e36a6a760a704a21ac4855b.zip FreeBSD-src-8a75936366d0a1583e36a6a760a704a21ac4855b.tar.gz |
Change the default transport protocol for use by the Mount protocol
from UDP to TCP, so that it is consistent with TCP for NFS, which
became the default at r176198. Without this change, doing an NFS mount
against a server that only supports UDP would result in an unusable
mount point if a transport protocol option wasn't specified for the
mount.
Approved by: kib (mentor)
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 9451fd7..7d4f3f6 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. */ |