#if DEBUG_CORE_QUOTA
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Sending %u b/s as new limit to peer `%4s'\n",
- (unsigned int) ntohl (n->bw_in.value__),
+ (unsigned int) ntohl (n->bw_in.rel_value__),
GNUNET_i2s (&n->peer));
#endif
ph->iv_seed = htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_NONCE, UINT32_MAX));
#if DEBUG_CORE_SET_QUOTA
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received %u b/s as new inbound limit for peer `%4s'\n",
- (unsigned int) ntohl (pt->inbound_bw_limit.value__),
+ (unsigned int) ntohl (pt->inbound_bw_limit.rel_value__),
GNUNET_i2s (&n->peer));
#endif
n->bw_out_external_limit = pt->inbound_bw_limit;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Current quota for `%4s' is %u/%llu b/s in (old: %u b/s) / %u out (%u internal)\n",
GNUNET_i2s (&n->peer),
- (unsigned int) ntohl (q_in.value__),
+ (unsigned int) ntohl (q_in.rel_value__),
bandwidth_target_out_bps,
- (unsigned int) ntohl (n->bw_in.value__),
- (unsigned int) ntohl (n->bw_out.value__),
- (unsigned int) ntohl (n->bw_out_internal_limit.value__));
+ (unsigned int) ntohl (n->bw_in.rel_value__),
+ (unsigned int) ntohl (n->bw_out.rel_value__),
+ (unsigned int) ntohl (n->bw_out_internal_limit.rel_value__));
#endif
if (n->bw_in.value__ != q_in.value__)
{
/**
* The actual value (in network byte order).
*/
- uint64_t value__ GNUNET_PACKED;
+ uint64_t rel_value__ GNUNET_PACKED;
};
test_transport_api_reliability_tcp_nat \
test_transport_api_reliability_udp \
$(HTTP_REL_TEST) \
- $(HTTPS_REL_TEST) \
- test_quota_compliance
+ $(HTTPS_REL_TEST)
+# test_quota_compliance
# TODO: add tests for nat, etc.
if !DISABLE_TEST_RUN
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received `%s' request (new quota %u, old quota %u) from client for peer `%4s'\n",
"SET_QUOTA",
- (unsigned int) ntohl (qsm->quota.value__),
+ (unsigned int) ntohl (qsm->quota.rel_value__),
(unsigned int) n->in_tracker.available_bytes_per_s__,
GNUNET_i2s (&qsm->peer));
#endif
if (n != NULL)
{
#if DEBUG_TRANSPORT
- if (ntohl (quota_out.value__) != n->out_tracker.available_bytes_per_s__)
+ if (ntohl (quota_out.rel_value__) != n->out_tracker.available_bytes_per_s__)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Quota changed from %u to %u for peer `%s'\n",
(unsigned int) n->out_tracker.available_bytes_per_s__,
- (unsigned int) ntohl (quota_out.value__),
+ (unsigned int) ntohl (quota_out.rel_value__),
GNUNET_i2s (target));
else
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Quota changed to %u for peer `%s', but I have no such neighbour!\n",
- (unsigned int) ntohl (quota_out.value__),
+ (unsigned int) ntohl (quota_out.rel_value__),
GNUNET_i2s (target));
#endif
}
GNUNET_TIME_relative_hton (struct GNUNET_TIME_Relative a)
{
struct GNUNET_TIME_RelativeNBO ret;
- ret.value__ = GNUNET_htonll (a.rel_value);
+ ret.rel_value__ = GNUNET_htonll (a.rel_value);
return ret;
}
GNUNET_TIME_relative_ntoh (struct GNUNET_TIME_RelativeNBO a)
{
struct GNUNET_TIME_Relative ret;
- ret.rel_value = GNUNET_ntohll (a.value__);
+ ret.rel_value = GNUNET_ntohll (a.rel_value__);
return ret;
}