From f38962a3c424ac07276eb2947128e508d0a275cc Mon Sep 17 00:00:00 2001 From: Ivan Delamer Date: Wed, 7 Mar 2012 12:50:10 -0700 Subject: [PATCH] Do not remove infinite default routers when PROBE fails. --- core/net/uip-ds6.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/net/uip-ds6.c b/core/net/uip-ds6.c index 1f54ca072..ad4f9ab9c 100644 --- a/core/net/uip-ds6.c +++ b/core/net/uip-ds6.c @@ -224,7 +224,9 @@ uip_ds6_periodic(void) if(locnbr->nscount >= UIP_ND6_MAX_UNICAST_SOLICIT) { PRINTF("PROBE END\n"); if((locdefrt = uip_ds6_defrt_lookup(&locnbr->ipaddr)) != NULL) { - uip_ds6_defrt_rm(locdefrt); + if (!locdefrt->isinfinite) { + uip_ds6_defrt_rm(locdefrt); + } } uip_ds6_nbr_rm(locnbr); } else if(stimer_expired(&locnbr->sendns) && (uip_len == 0)) {