summaryrefslogtreecommitdiffstats
path: root/support/nfs/svc_create.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2013-11-05 14:11:44 -0500
committerSteve Dickson <steved@redhat.com>2013-11-05 14:11:44 -0500
commitff948a50ef1013d7caa5d66e5534f69a94ec1c88 (patch)
treee14144a8005d54512e588138e009472f77ca8d73 /support/nfs/svc_create.c
parenta80482157632584ee03df58ed1eef3cefd95bbcb (diff)
downloadnfs-utils-ff948a50ef1013d7caa5d66e5534f69a94ec1c88.tar.gz
nfs-utils-ff948a50ef1013d7caa5d66e5534f69a94ec1c88.tar.xz
nfs-utils-ff948a50ef1013d7caa5d66e5534f69a94ec1c88.zip
mountd: Add the ability to disable UDP listeners.
Add the ability to turn off UDP listeners with the new "-u | --no-udp" flag. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/svc_create.c')
-rw-r--r--support/nfs/svc_create.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/nfs/svc_create.c b/support/nfs/svc_create.c
index 9ae2965..6b9e85b 100644
--- a/support/nfs/svc_create.c
+++ b/support/nfs/svc_create.c
@@ -419,6 +419,9 @@ nfs_svc_create(char *name, const rpcprog_t program, const rpcvers_t version,
continue;
visible++;
+ if (!strcmp(nconf->nc_proto, NC_UDP) && !NFSCTL_UDPISSET(_rpcprotobits))
+ continue;
+
if (!strcmp(nconf->nc_proto, NC_TCP) && !NFSCTL_TCPISSET(_rpcprotobits))
continue;