adding addresses with network
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 9 Jul 2013 15:40:03 +0000 (15:40 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 9 Jul 2013 15:40:03 +0000 (15:40 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 4cc75790e21b948ece3a52cf62520bd79f85e874..d372f5c4330f8ba7a4c34acacc34d15f634f1943 100644 (file)
@@ -2005,7 +2005,7 @@ handle_test_blacklist_cont (void *cls,
        {
                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 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
        {
                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 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
        {
                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 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message,
                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,