From 9f4cdab1fb28191c9ef9fd5f3880cae126fa75dc Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Thu, 20 Feb 2014 15:55:12 +0000 Subject: [PATCH] Don't advertise datagrams older than Tactive --- core/net/ipv6/multicast/roll-tm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/ipv6/multicast/roll-tm.c b/core/net/ipv6/multicast/roll-tm.c index 715032936..e8aa863c0 100644 --- a/core/net/ipv6/multicast/roll-tm.c +++ b/core/net/ipv6/multicast/roll-tm.c @@ -835,7 +835,8 @@ icmp_output() for(locmpptr = &buffered_msgs[ROLL_TM_BUFF_NUM - 1]; locmpptr >= buffered_msgs; locmpptr--) { - if(MCAST_PACKET_IS_USED(locmpptr)) { + if(MCAST_PACKET_IS_USED(locmpptr) && + locmpptr->active < TRICKLE_ACTIVE((&t[SLIDING_WINDOW_GET_M(iterswptr)]))) { if(locmpptr->sw == iterswptr) { sl->seq_len++; PRINTF(", %u", locmpptr->seq_val);