aboutsummaryrefslogtreecommitdiff
path: root/src/util/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/network.c')
-rw-r--r--src/util/network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/network.c b/src/util/network.c
index e071b8b54..65016bbcd 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -285,12 +285,12 @@ GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc,
285 if (desc->af == AF_INET6) 285 if (desc->af == AF_INET6)
286 if (0 != setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on))) 286 if (0 != setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on)))
287 GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt"); 287 GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
288#if 0
289 /* is this needed or desired? or done elsewhere? */
290 if (0 != setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)))
291 GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
292#endif 288#endif
293#endif 289#endif
290#ifndef WINDOWS
291 /* This is required, and required here, but only on UNIX */
292 if (0 != setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)))
293 GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
294#endif 294#endif
295#ifndef LINUX 295#ifndef LINUX
296#ifndef MINGW 296#ifndef MINGW