gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r15381 - gnunet/src/transport
Date: Wed, 1 Jun 2011 12:20:00 +0200

Author: wachs
Date: 2011-06-01 12:20:00 +0200 (Wed, 01 Jun 2011)
New Revision: 15381

Modified:
   gnunet/src/transport/plugin_transport_udp.c
Log:
this code made no sense in this context


Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2011-06-01 10:13:03 UTC (rev 
15380)
+++ gnunet/src/transport/plugin_transport_udp.c 2011-06-01 10:20:00 UTC (rev 
15381)
@@ -1903,12 +1903,11 @@
                   size_t addrlen)
 {
   struct Plugin *plugin = cls;
-  char buf[INET6_ADDRSTRLEN];
+
   const void *sb;
   struct in_addr a4;
   struct in6_addr a6;
   int af;
-  uint16_t port;
   struct IPv4UdpAddress *v4;
   struct IPv6UdpAddress *v6;
 
@@ -1930,7 +1929,6 @@
        return GNUNET_SYSERR;
 
       af = AF_INET;
-      port = ntohs (v4->u_port);
       memcpy (&a4, &v4->ipv4_addr, sizeof (a4));
       sb = &a4;
     }
@@ -1950,19 +1948,10 @@
        return GNUNET_SYSERR;
 
       af = AF_INET6;
-      port = ntohs (v6->u6_port);
       memcpy (&a6, &v6->ipv6_addr, sizeof (a6));
       sb = &a6;
     }
 
-  inet_ntop (af, sb, buf, INET6_ADDRSTRLEN);
-
-#if DEBUG_UDP
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                   "Informing transport service about my address `%s:%u'\n",
-                   buf,
-                   port);
-#endif
   return GNUNET_OK;
 }
 




reply via email to

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