Added a timer that randomizes the retransmission of an incoming new trickle version to avoid broadcast collisions

This commit is contained in:
adamdunkels 2009-04-06 21:20:35 +00:00
parent be1c8ccec9
commit ace6567815
2 changed files with 5 additions and 4 deletions

View file

@ -45,7 +45,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: trickle.h,v 1.10 2009/03/12 21:58:21 adamdunkels Exp $
* $Id: trickle.h,v 1.11 2009/04/06 21:20:35 adamdunkels Exp $
*/
/**
@ -74,7 +74,7 @@ struct trickle_callbacks {
struct trickle_conn {
struct broadcast_conn c;
const struct trickle_callbacks *cb;
struct ctimer t, interval_timer;
struct ctimer t, interval_timer, first_transmission_timer;
struct pt pt;
struct queuebuf *q;
clock_time_t interval;