gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21469 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r21469 - gnunet/src/transport
Date: Mon, 14 May 2012 11:06:59 +0200

Author: wachs
Date: 2012-05-14 11:06:59 +0200 (Mon, 14 May 2012)
New Revision: 21469

Modified:
   gnunet/src/transport/plugin_transport_udp.c
Log:
fix for mantis 2346


Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2012-05-14 08:19:01 UTC (rev 
21468)
+++ gnunet/src/transport/plugin_transport_udp.c 2012-05-14 09:06:59 UTC (rev 
21469)
@@ -1847,10 +1847,31 @@
 
   if (GNUNET_SYSERR == sent)
   {
-    LOG (GNUNET_ERROR_TYPE_ERROR,
+    const struct GNUNET_ATS_Information type = plugin->env->get_address_type
+        (plugin->env->cls,sa, slen);
+
+    if ((GNUNET_ATS_NET_WAN == type.value) &&
+        ((ENETUNREACH == errno) || (ENETDOWN == errno)))
+    {
+      /* "Network unreachable" or "Network down" */
+      /*
+       * This indicates that this system is IPv6 enabled, but does not
+       * have a valid global IPv6 address assigned
+       */
+       LOG (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK,
+           _("UDP could not message to `%s': `%s'\n, " \
+           "Please check your network configuration and disable IPv6 if 
your\n" \
+           "connection does not have a global IPv6 address"),
+           GNUNET_a2s (sa, slen),
+           STRERROR (errno));
+    }
+    else
+    {
+      LOG (GNUNET_ERROR_TYPE_ERROR,
          "UDP could not transmit %u-byte message to `%s': `%s'\n",
          (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen),
          STRERROR (errno));
+    }
     call_continuation(udpw, GNUNET_SYSERR);
   }
   else




reply via email to

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