diff options
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 29 | ||||
-rw-r--r-- | src/transport/transport.conf.in | 2 |
2 files changed, 28 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index baabf45ea..d418e50d9 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -268,7 +268,19 @@ udp_ipv4_broadcast_send (void *cls, | |||
268 | (const struct sockaddr *) addr, | 268 | (const struct sockaddr *) addr, |
269 | baddr->addrlen); | 269 | baddr->addrlen); |
270 | if (sent == GNUNET_SYSERR) | 270 | if (sent == GNUNET_SYSERR) |
271 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); | 271 | { |
272 | if ((ENETUNREACH == errno) || (ENETDOWN == errno)) | ||
273 | { | ||
274 | /* "Network unreachable" or "Network down" | ||
275 | * | ||
276 | * This indicates that we just do not have network connectivity | ||
277 | */ | ||
278 | GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING, | ||
279 | "Network connectivity is down, cannot send beacon!\n"); | ||
280 | } | ||
281 | else | ||
282 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); | ||
283 | } | ||
272 | else | 284 | else |
273 | { | 285 | { |
274 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 286 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -301,7 +313,20 @@ udp_ipv6_broadcast_send (void *cls, | |||
301 | &plugin->ipv6_multicast_address, | 313 | &plugin->ipv6_multicast_address, |
302 | sizeof (struct sockaddr_in6)); | 314 | sizeof (struct sockaddr_in6)); |
303 | if (sent == GNUNET_SYSERR) | 315 | if (sent == GNUNET_SYSERR) |
304 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); | 316 | { |
317 | if ((ENETUNREACH == errno) || (ENETDOWN == errno)) | ||
318 | { | ||
319 | /* "Network unreachable" or "Network down" | ||
320 | * | ||
321 | * This indicates that this system is IPv6 enabled, but does not | ||
322 | * have a valid global IPv6 address assigned | ||
323 | */ | ||
324 | GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING, | ||
325 | "Network connectivity is down, cannot send beacon!\n"); | ||
326 | } | ||
327 | else | ||
328 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "sendto"); | ||
329 | } | ||
305 | else | 330 | else |
306 | { | 331 | { |
307 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 332 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
diff --git a/src/transport/transport.conf.in b/src/transport/transport.conf.in index 9a6f5d912..fd67b70d6 100644 --- a/src/transport/transport.conf.in +++ b/src/transport/transport.conf.in | |||
@@ -47,7 +47,7 @@ MAX_CONNECTIONS = 128 | |||
47 | [transport-udp] | 47 | [transport-udp] |
48 | PORT = 2086 | 48 | PORT = 2086 |
49 | BROADCAST = YES | 49 | BROADCAST = YES |
50 | BROADCAST_INTERVAL = 30000 | 50 | BROADCAST_INTERVAL = 300 |
51 | MAX_BPS = 1000000 | 51 | MAX_BPS = 1000000 |
52 | 52 | ||
53 | [transport-http] | 53 | [transport-http] |