struct NeighbourMapEntry *n;
struct GNUNET_TIME_Relative ret;
+ if (NULL != getenv ("infinite-bandwidth"))
+ {
+ *do_forward = GNUNET_YES;
+ return GNUNET_TIME_UNIT_ZERO;
+ }
GNUNET_assert (neighbours != NULL);
n = lookup_neighbour (sender);
}
th = n->th;
if (th->notify_size + sizeof (struct OutboundMessage) > size)
- break; /* does not fit */
+ break; /* does not fit */
if (GNUNET_BANDWIDTH_tracker_get_delay
(&n->out_tracker, th->notify_size).rel_value > 0)
break; /* too early */
memcpy (&cbuf[ret], &obm, sizeof (struct OutboundMessage));
ret += (mret + sizeof (struct OutboundMessage));
size -= (mret + sizeof (struct OutboundMessage));
- GNUNET_BANDWIDTH_tracker_consume (&n->out_tracker, mret);
+ if (NULL == getenv ("infinite-bandwidth"))
+ GNUNET_BANDWIDTH_tracker_consume (&n->out_tracker, mret);
}
GNUNET_free (th);
}