diff options
author | jeff <jeff@FreeBSD.org> | 2003-10-04 17:41:59 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-10-04 17:41:59 +0000 |
commit | daf04438572f986b4e7158eb0be7b2f17ba95a78 (patch) | |
tree | 77f7930403fdfb1ddffb6a44f724e24867c6e7e8 /sys/nfsclient/nfs_socket.c | |
parent | 1fc48676923e2ae6881c21a44cff8df82d10fabb (diff) | |
download | FreeBSD-src-daf04438572f986b4e7158eb0be7b2f17ba95a78.zip FreeBSD-src-daf04438572f986b4e7158eb0be7b2f17ba95a78.tar.gz |
- Consistently set sopt_dir.
Pointed out by: pete@isilon.com
Diffstat (limited to 'sys/nfsclient/nfs_socket.c')
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index aaa2f7a..43c28d3 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -288,6 +288,7 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep) 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; @@ -300,6 +301,7 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep) 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; |