summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/mountd/mountd.c6
-rw-r--r--utils/mountd/mountd.man3
2 files changed, 8 insertions, 1 deletions
diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c
index d79bf15..4df7083 100644
--- a/utils/mountd/mountd.c
+++ b/utils/mountd/mountd.c
@@ -36,6 +36,7 @@ static struct option longopts[] =
{ "no-nfs-version", 1, 0, 'N' },
{ "version", 0, 0, 'v' },
{ "port", 1, 0, 'p' },
+ { "no-tcp", 0, 0, 'n' },
{ NULL, 0, 0, 0 }
};
@@ -419,6 +420,9 @@ main(int argc, char **argv)
case 'N':
nfs_version &= ~(1 << (atoi (optarg) - 1));
break;
+ case 'n':
+ _rpcfdtype = SOCK_DGRAM;
+ break;
case 'V':
nfs_version |= 1 << (atoi (optarg) - 1);
break;
@@ -499,6 +503,6 @@ usage(const char *prog, int n)
"Usage: %s [-Fhnv] [-d kind] [-f exports-file] [-V version]\n"
" [-N version] [--debug kind] [-p|--port port] [--help] [--version]\n"
" [--exports-file=file] [--nfs-version version]\n"
-" [--no-nfs-version version]\n", prog);
+" [--no-nfs-version version] [--no-tcp]\n", prog);
exit(n);
}
diff --git a/utils/mountd/mountd.man b/utils/mountd/mountd.man
index 9dff681..c38d5e2 100644
--- a/utils/mountd/mountd.man
+++ b/utils/mountd/mountd.man
@@ -83,6 +83,9 @@ NFS kernel module was compiled without support for NFSv3,
must be invoked with the option
.B "\-\-no-nfs-version 3" .
.TP
+.B \-n " or " \-\-no-tcp
+Don't advertise TCP for mount.
+.TP
.B \-P
Ignored (compatibility with unfsd??).
.TP