diff options
author | alfred <alfred@FreeBSD.org> | 2004-07-13 05:42:59 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2004-07-13 05:42:59 +0000 |
commit | b4f778e20c46825ddafb8cb55a1f461fb0939e62 (patch) | |
tree | e55ed4db554b0da70c190592b44092dd5a420989 /sys/nfsclient/nfs_socket.c | |
parent | 8c666334680aacd31f60791f869b43362cc3e41e (diff) | |
download | FreeBSD-src-b4f778e20c46825ddafb8cb55a1f461fb0939e62.zip FreeBSD-src-b4f778e20c46825ddafb8cb55a1f461fb0939e62.tar.gz |
Turn off SO_REUSEADDR and SO_REUSEPORT, they were causing EADDRINUSE
to be returned from the protocol stack.
Pointy hat to me for not groking what those options _really_ mean.
Diffstat (limited to 'sys/nfsclient/nfs_socket.c')
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index e875f5c..e24b318 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -160,7 +160,7 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep) { struct socket *so; int error, rcvreserve, sndreserve; - int opt, pktscale; + int pktscale; struct sockaddr *saddr; struct thread *td = &thread0; /* only used for socreate and sobind */ @@ -175,10 +175,6 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep) so = nmp->nm_so; nmp->nm_soflags = so->so_proto->pr_flags; - opt = 1; - (void)so_setsockopt(so, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); - (void)so_setsockopt(so, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)); - /* * Some servers require that the client port be a reserved port number. */ |