From 729a434d0f2889486765ff4b14c44189bff1a224 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Wed, 29 Feb 2012 15:01:59 -0800 Subject: [PATCH] always send DAO to refresh routes --- core/net/rpl/rpl-icmp6.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/net/rpl/rpl-icmp6.c b/core/net/rpl/rpl-icmp6.c index 424e7ed19..114b673e4 100755 --- a/core/net/rpl/rpl-icmp6.c +++ b/core/net/rpl/rpl-icmp6.c @@ -445,9 +445,8 @@ dio_output(rpl_instance_t *instance, uip_ipaddr_t *uc_addr) buffer[pos++] = instance->dtsn_out; - if(RPL_LOLLIPOP_IS_INIT(instance->dtsn_out)) { - RPL_LOLLIPOP_INCREMENT(instance->dtsn_out); - } + /* always request new DAO to refresh route */ + RPL_LOLLIPOP_INCREMENT(instance->dtsn_out); /* reserved 2 bytes */ buffer[pos++] = 0; /* flags */