aboutsummaryrefslogtreecommitdiff
path: root/src/util/network.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-21 16:17:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-21 16:17:05 +0000
commitc00c0b6b24aff730e77fa3c971dd758208c8f61c (patch)
tree0168a8e6130653c857a09356421972794e48b924 /src/util/network.c
parent439d3cd69f7d187ac7ea6a30841175393a88a9aa (diff)
downloadgnunet-c00c0b6b24aff730e77fa3c971dd758208c8f61c.tar.gz
gnunet-c00c0b6b24aff730e77fa3c971dd758208c8f61c.zip
cleaner
Diffstat (limited to 'src/util/network.c')
-rw-r--r--src/util/network.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/network.c b/src/util/network.c
index 3b76a35d1..08121928d 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -270,10 +270,12 @@ GNUNET_NETWORK_socket_bind (struct GNUNET_NETWORK_Handle *desc,
270#ifdef IPPROTO_IPV6 270#ifdef IPPROTO_IPV6
271 const int on = 1; 271 const int on = 1;
272 if (desc->af == AF_INET6) 272 if (desc->af == AF_INET6)
273 setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on)); 273 if (0 != setsockopt (desc->fd, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof (on)))
274 GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
274#if 0 275#if 0
275 /* is this needed or desired? or done elsewhere? */ 276 /* is this needed or desired? or done elsewhere? */
276 setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)); 277 if (0 != setsockopt (desc->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)))
278 GNUNET_log_strerror (GNUNET_ERROR_TYPE_DEBUG, "setsockopt");
277#endif 279#endif
278#endif 280#endif
279#endif 281#endif