Fix RPL classic compilation for TARGET sky

This commit is contained in:
George Oikonomou 2018-09-09 20:10:53 +01:00
parent 20c5e968b4
commit bce7164827

View File

@ -48,6 +48,7 @@ static void
set_global_address(uip_ipaddr_t *prefix, uip_ipaddr_t *iid)
{
static uip_ipaddr_t root_ipaddr;
int i;
/* Assign a unique local address (RFC4193,
http://tools.ietf.org/html/rfc4193). */
@ -68,7 +69,7 @@ set_global_address(uip_ipaddr_t *prefix, uip_ipaddr_t *iid)
uint8_t state;
LOG_DBG("IPv6 addresses: ");
for(int i = 0; i < UIP_DS6_ADDR_NB; i++) {
for(i = 0; i < UIP_DS6_ADDR_NB; i++) {
state = uip_ds6_if.addr_list[i].state;
if(uip_ds6_if.addr_list[i].isused &&
(state == ADDR_TENTATIVE || state == ADDR_PREFERRED)) {