{
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,
{
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,
{
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,
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,