Fix -o mntudp after the conversion to default TCP mounts

Submitted by:	danfe
MFC after:	1 week
This commit is contained in:
kris 2008-07-10 17:53:10 +00:00
parent 4b0dbab536
commit b1f6c11549

View File

@ -391,8 +391,11 @@ main(int argc, char *argv[])
opflags |= OF_NOINET4;
if (altflags & ALTF_NOINET6)
opflags |= OF_NOINET6;
if (altflags & ALTF_MNTUDP)
if (altflags & ALTF_MNTUDP) {
mnttcp_ok = 0;
nfsargsp->sotype = SOCK_DGRAM;
nfsproto = IPPROTO_UDP;
}
if (altflags & ALTF_TCP) {
nfsargsp->sotype = SOCK_STREAM;
nfsproto = IPPROTO_TCP;