[openssh-commits] [openssh] 01/03: some systems lack SO_REUSEPORT

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Jan 15 03:09:35 EST 2015


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit c332110291089b624fa0951fbf2d1ee6de525b9f
Author: Damien Miller <djm at mindrot.org>
Date:   Thu Jan 15 02:59:51 2015 +1100

    some systems lack SO_REUSEPORT
---
 regress/netcat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regress/netcat.c b/regress/netcat.c
index c14d816..bffaade 100644
--- a/regress/netcat.c
+++ b/regress/netcat.c
@@ -719,11 +719,11 @@ local_listen(char *host, char *port, struct addrinfo hints)
 		    &rtableid, sizeof(rtableid)) == -1))
 			err(1, "setsockopt SO_RTABLE");
 #endif
-
+#ifdef SO_REUSEPORT
 		ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof(x));
 		if (ret == -1)
 			err(1, NULL);
-
+#endif
 		set_common_sockopts(s);
 
 		if (bind(s, (struct sockaddr *)res0->ai_addr,

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list