summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2003-10-04 17:37:51 +0000
committerjeff <jeff@FreeBSD.org>2003-10-04 17:37:51 +0000
commit9d218b6014e7b99cbd4d663d059f1408e4ac20f7 (patch)
tree8b11b7407b946a19c48b489b8dc61ecdd3ea59b4 /sys/nfsserver
parent420cf70112c4eff7ddf30b717796a3e4852fc1c4 (diff)
downloadFreeBSD-src-9d218b6014e7b99cbd4d663d059f1408e4ac20f7.zip
FreeBSD-src-9d218b6014e7b99cbd4d663d059f1408e4ac20f7.tar.gz
- Set the sopt_dir member of the sockopt structure, otherwise, this parameter
will not actually be set even though we're calling sosetopt. sosetopt calls down to a single ctloutput function if the name or level is implemented by a specific protocol. Submitted by: pete@isilon.com
Diffstat (limited to 'sys/nfsserver')
-rw-r--r--sys/nfsserver/nfs_syscalls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfsserver/nfs_syscalls.c b/sys/nfsserver/nfs_syscalls.c
index 8788089..f4d0c76 100644
--- a/sys/nfsserver/nfs_syscalls.c
+++ b/sys/nfsserver/nfs_syscalls.c
@@ -235,6 +235,7 @@ nfssvc_addsock(struct file *fp, struct sockaddr *mynam, struct thread *td)
int val;
bzero(&sopt, sizeof sopt);
+ sopt.sopt_dir = SOPT_SET;
sopt.sopt_level = SOL_SOCKET;
sopt.sopt_name = SO_KEEPALIVE;
sopt.sopt_val = &val;
@@ -247,6 +248,7 @@ nfssvc_addsock(struct file *fp, struct sockaddr *mynam, struct thread *td)
int val;
bzero(&sopt, sizeof sopt);
+ sopt.sopt_dir = SOPT_SET;
sopt.sopt_level = IPPROTO_TCP;
sopt.sopt_name = TCP_NODELAY;
sopt.sopt_val = &val;
OpenPOWER on IntegriCloud