address.address = plugin_address;
address.address_length = plugin_address_length;
address.transport_name = plugin_name;
+ address.local_info = ntohl(m->address_local_info);
if ((s == NULL) && (0 == address.address_length))
{
return GNUNET_SYSERR;
}
- namelen =
- (address->transport_name ==
- NULL) ? 0 : strlen (address->transport_name) + 1;
- msize =
- sizeof (struct AddressUpdateMessage) + address->address_length +
+ namelen = (address->transport_name == NULL) ? 0 : strlen (address->transport_name) + 1;
+
+ msize = sizeof (struct AddressUpdateMessage) + address->address_length +
ats_count * sizeof (struct GNUNET_ATS_Information) + namelen;
if ((msize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ||
(address->address_length >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ||
m->ats_count = htonl (ats_count);
m->peer = address->peer;
m->address_length = htons (address->address_length);
+ m->address_local_info = htonl ((uint32_t) address->local_info);
m->plugin_name_length = htons (namelen);
m->session_id = htonl (s);
m->ats_count = htonl (ats_count);
m->peer = address->peer;
m->address_length = htons (address->address_length);
+ m->address_local_info = htonl ((uint32_t) address->local_info);
m->plugin_name_length = htons (namelen);
m->session_id = htonl (s);
m->peer = address->peer;
m->in_use = htons (in_use);
m->address_length = htons (address->address_length);
+ m->address_local_info = htonl ((uint32_t) address->local_info);
m->plugin_name_length = htons (namelen);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
/**
- * A session got destroyed, stop including it as a valid address.
+ * An address got destroyed, stop including it as a valid address.
+ *
+ * If a session is given, only the session will be removed, if no session is
+ * given the full address will be deleted.
*
* @param sh handle
* @param address the address
m->reserved = htonl (0);
m->peer = address->peer;
m->address_length = htons (address->address_length);
+ m->address_local_info = htonl ((uint32_t) address->local_info);
m->plugin_name_length = htons (namelen);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,