On Tue, Dec 11, 2012 at 10:57:24PM +0100, Antonio Quartulli wrote: [...]
/* when do we schedule a ogm packet to be sent */ static unsigned long batadv_iv_ogm_fwd_send_time(void) {
- return jiffies + msecs_to_jiffies(random32() % (BATADV_JITTER / 2));
- return jiffies + BATADV_MAX_AGGREGATION_MS +
msecs_to_jiffies(random32() % (BATADV_JITTER / 2));
}
I just realise that I cannot add BATADV_MAX_AGGREGATION_MS here directly because this function is used to compute the forwarding time of OGMs the node received and that it has to rebroadcast. I'll fix this and post a patch.
Cheers,