diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index 5976986b..da373bd3 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -723,7 +723,7 @@ nd6_tmr(void) /* Try to get an address on this netif that is invalid. * Skip 0 index (link-local address) */ for (j = 1; j < LWIP_IPV6_NUM_ADDRESSES; j++) { - if (netif_ip6_addr_state(prefix_list[i].netif, j) == IP6_ADDRESS_STATE_INVALID) { + if (netif_ip6_addr_state(prefix_list[i].netif, j) == IP6_ADDR_INVALID) { /* Generate an address using this prefix and interface ID from link-local address. */ prefix_list[i].netif->ip6_addr[j].addr[0] = prefix_list[i].prefix.addr[0]; prefix_list[i].netif->ip6_addr[j].addr[1] = prefix_list[i].prefix.addr[1]; diff --git a/src/include/ipv6/lwip/nd6.h b/src/include/ipv6/lwip/nd6.h index 28636e89..193788fb 100644 --- a/src/include/ipv6/lwip/nd6.h +++ b/src/include/ipv6/lwip/nd6.h @@ -328,13 +328,6 @@ PACK_STRUCT_END # include "arch/epstruct.h" #endif -/* the possible states of an IP address */ -#define IP6_ADDRESS_STATE_INVALID (0) -#define IP6_ADDRESS_STATE_VALID (0x4) -#define IP6_ADDRESS_STATE_PREFERRED (0x5) /* includes valid */ -#define IP6_ADDRESS_STATE_DEPRECATED (0x6) /* includes valid */ -#define IP6_ADDRESS_STATE_TENTATIV (0x8) - /** 1 second period */ #define ND6_TMR_INTERVAL 1000