gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r27840 - gnunet/src/transport
Date: Tue, 9 Jul 2013 17:40:03 +0200

Author: wachs
Date: 2013-07-09 17:40:03 +0200 (Tue, 09 Jul 2013)
New Revision: 27840

Modified:
   gnunet/src/transport/gnunet-service-transport_neighbours.c
Log:
adding addresses with network


Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c  2013-07-09 
15:39:42 UTC (rev 27839)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c  2013-07-09 
15:40:03 UTC (rev 27840)
@@ -2005,7 +2005,7 @@
        {
                net = papi->get_network (NULL, bcc->na.session);
                ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
-               ats.value = net;
+               ats.value = htonl(net);
 //                     GNUNET_break (0);
 //                     fprintf (stderr, "NET: %u\n", ntohl(net));
                GNUNET_ATS_address_add (GST_ats,
@@ -2839,7 +2839,7 @@
        {
                net = papi->get_network (NULL, n->primary_address.session);
                ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
-               ats.value = net;
+               ats.value = htonl(net);
 //             GNUNET_break (0);
 //             fprintf (stderr, "NET: %u\n", ntohl(net));
         GNUNET_ATS_address_add (GST_ats,
@@ -2907,7 +2907,7 @@
        {
                net = papi->get_network (NULL, n->alternative_address.session);
                ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
-               ats.value = net;
+               ats.value = htonl(net);
 //             GNUNET_break (0);
 //             fprintf (stderr, "NET: %u\n", ntohl(net));
         GNUNET_ATS_address_add (GST_ats,
@@ -3140,7 +3140,7 @@
                int net = papi->get_network (NULL, n->primary_address.session);
                struct GNUNET_ATS_Information ats;
                ats.type = htonl (GNUNET_ATS_NETWORK_TYPE);
-               ats.value = net;
+               ats.value = htonl(net);
 //             GNUNET_break (0);
 //             fprintf (stderr, "NET: %u\n", ntohl(net));
       GNUNET_ATS_address_add (GST_ats,




reply via email to

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