gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r16875 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r16875 - gnunet/src/util
Date: Fri, 16 Sep 2011 14:55:01 +0200

Author: grothoff
Date: 2011-09-16 14:55:01 +0200 (Fri, 16 Sep 2011)
New Revision: 16875

Modified:
   gnunet/src/util/network.c
Log:
do use reuseaddr on non-W32 systems

Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c   2011-09-16 12:38:26 UTC (rev 16874)
+++ gnunet/src/util/network.c   2011-09-16 12:55:01 UTC (rev 16875)
@@ -285,13 +285,13 @@
   if (desc->af == AF_INET6)
     if (0 != setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof 
(on)))
       GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
-#if 0
-  /* is this needed or desired? or done elsewhere? */
+#endif
+#endif
+#ifndef WINDOWS
+  /* This is required, and required here, but only on UNIX */
   if (0 != setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)))
     GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
 #endif
-#endif
-#endif
 #ifndef LINUX
 #ifndef MINGW
   if (address->sa_family == AF_UNIX)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]