diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-09 15:40:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-09 15:40:03 +0000 |
commit | 5427359ae439d524509e3221dedf48941f213dab (patch) | |
tree | eb2e2f816eaa6c293d3a27b349a957cfb821ae97 /src/transport/gnunet-service-transport_neighbours.c | |
parent | b389517768387e8a6f1ac40ae587b376e281bc56 (diff) | |
download | gnunet-5427359ae439d524509e3221dedf48941f213dab.tar.gz gnunet-5427359ae439d524509e3221dedf48941f213dab.zip |
adding addresses with network
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 4cc75790e..d372f5c43 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -2005,7 +2005,7 @@ handle_test_blacklist_cont (void *cls, | |||
2005 | { | 2005 | { |
2006 | net = papi->get_network (NULL, bcc->na.session); | 2006 | net = papi->get_network (NULL, bcc->na.session); |
2007 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); | 2007 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); |
2008 | ats.value = net; | 2008 | ats.value = htonl(net); |
2009 | // GNUNET_break (0); | 2009 | // GNUNET_break (0); |
2010 | // fprintf (stderr, "NET: %u\n", ntohl(net)); | 2010 | // fprintf (stderr, "NET: %u\n", ntohl(net)); |
2011 | GNUNET_ATS_address_add (GST_ats, | 2011 | GNUNET_ATS_address_add (GST_ats, |
@@ -2839,7 +2839,7 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message, | |||
2839 | { | 2839 | { |
2840 | net = papi->get_network (NULL, n->primary_address.session); | 2840 | net = papi->get_network (NULL, n->primary_address.session); |
2841 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); | 2841 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); |
2842 | ats.value = net; | 2842 | ats.value = htonl(net); |
2843 | // GNUNET_break (0); | 2843 | // GNUNET_break (0); |
2844 | // fprintf (stderr, "NET: %u\n", ntohl(net)); | 2844 | // fprintf (stderr, "NET: %u\n", ntohl(net)); |
2845 | GNUNET_ATS_address_add (GST_ats, | 2845 | GNUNET_ATS_address_add (GST_ats, |
@@ -2907,7 +2907,7 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message, | |||
2907 | { | 2907 | { |
2908 | net = papi->get_network (NULL, n->alternative_address.session); | 2908 | net = papi->get_network (NULL, n->alternative_address.session); |
2909 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); | 2909 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); |
2910 | ats.value = net; | 2910 | ats.value = htonl(net); |
2911 | // GNUNET_break (0); | 2911 | // GNUNET_break (0); |
2912 | // fprintf (stderr, "NET: %u\n", ntohl(net)); | 2912 | // fprintf (stderr, "NET: %u\n", ntohl(net)); |
2913 | GNUNET_ATS_address_add (GST_ats, | 2913 | GNUNET_ATS_address_add (GST_ats, |
@@ -3140,7 +3140,7 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message, | |||
3140 | int net = papi->get_network (NULL, n->primary_address.session); | 3140 | int net = papi->get_network (NULL, n->primary_address.session); |
3141 | struct GNUNET_ATS_Information ats; | 3141 | struct GNUNET_ATS_Information ats; |
3142 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); | 3142 | ats.type = htonl (GNUNET_ATS_NETWORK_TYPE); |
3143 | ats.value = net; | 3143 | ats.value = htonl(net); |
3144 | // GNUNET_break (0); | 3144 | // GNUNET_break (0); |
3145 | // fprintf (stderr, "NET: %u\n", ntohl(net)); | 3145 | // fprintf (stderr, "NET: %u\n", ntohl(net)); |
3146 | GNUNET_ATS_address_add (GST_ats, | 3146 | GNUNET_ATS_address_add (GST_ats, |