From d8d9494168e779398e128c99ce9f59f4d3b17d2c Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Wed, 13 Jul 2011 10:31:22 +0200 Subject: [PATCH] uip : When creating a route with a "state" field, clear it (It's possible that the process responsible for this creation doesn't handle the state field) --- core/net/uip-ds6.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/net/uip-ds6.c b/core/net/uip-ds6.c index 6f11a5297..b30461bac 100644 --- a/core/net/uip-ds6.c +++ b/core/net/uip-ds6.c @@ -784,6 +784,10 @@ uip_ds6_route_add(uip_ipaddr_t *ipaddr, uint8_t length, uip_ipaddr_t *nexthop, uip_ipaddr_copy(&(locroute->nexthop), nexthop); locroute->metric = metric; +#ifdef UIP_DS6_ROUTE_STATE_TYPE + memset (&(locroute->state),0,sizeof(UIP_DS6_ROUTE_STATE_TYPE)); +#endif + PRINTF("DS6: adding route: "); PRINT6ADDR(ipaddr); PRINTF(" via ");