Merge pull request #646 from g-oikonomou/bugfix/rpl-classic-sky

Fix RPL classic compilation for TARGET sky
This commit is contained in:
George Oikonomou 2018-09-09 23:37:17 +01:00 committed by GitHub
commit 6481db2af4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {