From 74baca91b1651bf830ef5ada68803ae80885bb68 Mon Sep 17 00:00:00 2001 From: simonduq Date: Fri, 5 Oct 2012 17:55:45 +0200 Subject: [PATCH] Added sanity check to avoid deleting DS6 neighbor table entry for a default route --- core/net/uip-ds6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/uip-ds6.c b/core/net/uip-ds6.c index eefbef11b..056c74cd0 100644 --- a/core/net/uip-ds6.c +++ b/core/net/uip-ds6.c @@ -335,7 +335,7 @@ uip_ds6_nbr_add(uip_ipaddr_t *ipaddr, uip_lladdr_t *lladdr, for(n = uip_ds6_nbr_cache; n < &uip_ds6_nbr_cache[UIP_DS6_NBR_NB]; n++) { - if(n->isused) { + if(n->isused && !uip_ds6_defrt_lookup(&n->ipaddr)) { if(n->last_lookup < oldest_time) { oldest = n; oldest_time = n->last_lookup;