]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mountd.c
2000-11-09 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / utils / mountd / mountd.c
index d79bf150c6888b9cf64eed752acca85c286d4416..4df7083e1815efd11d99b026d1e88ae5082b220b 100644 (file)
@@ -36,6 +36,7 @@ static struct option longopts[] =
        { "no-nfs-version", 1, 0, 'N' },
        { "version", 0, 0, 'v' },
        { "port", 1, 0, 'p' },
        { "no-nfs-version", 1, 0, 'N' },
        { "version", 0, 0, 'v' },
        { "port", 1, 0, 'p' },
+       { "no-tcp", 0, 0, 'n' },
        { NULL, 0, 0, 0 }
 };
 
        { NULL, 0, 0, 0 }
 };
 
@@ -419,6 +420,9 @@ main(int argc, char **argv)
                case 'N':
                        nfs_version &= ~(1 << (atoi (optarg) - 1));
                        break;
                case 'N':
                        nfs_version &= ~(1 << (atoi (optarg) - 1));
                        break;
+               case 'n':
+                       _rpcfdtype = SOCK_DGRAM;
+                       break;
                case 'V':
                        nfs_version |= 1 << (atoi (optarg) - 1);
                        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"
 "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);
 }
        exit(n);
 }