From ff948a50ef1013d7caa5d66e5534f69a94ec1c88 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 5 Nov 2013 14:11:44 -0500 Subject: 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 --- support/nfs/svc_create.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'support/nfs') 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; -- cgit