Browse Source

Merge pull request #3958 from authmillenon/gnrc_ipv6_nc/fix/leave-unmanaged

gnrc_ipv6_nc: leave UNMANAGED entries UNMANAGED
dev/timer
Martine Lenders 7 years ago
parent
commit
6c61266bed
  1. 3
      sys/net/gnrc/network_layer/ipv6/nc/gnrc_ipv6_nc.c

3
sys/net/gnrc/network_layer/ipv6/nc/gnrc_ipv6_nc.c

@ -223,7 +223,8 @@ gnrc_ipv6_nc_t *gnrc_ipv6_nc_still_reachable(const ipv6_addr_t *ipv6_addr)
return NULL;
}
if (gnrc_ipv6_nc_get_state(entry) != GNRC_IPV6_NC_STATE_INCOMPLETE) {
if ((gnrc_ipv6_nc_get_state(entry) != GNRC_IPV6_NC_STATE_INCOMPLETE) &&
(gnrc_ipv6_nc_get_state(entry) != GNRC_IPV6_NC_STATE_UNMANAGED)) {
#if defined(MODULE_GNRC_IPV6_NETIF) && defined(MODULE_VTIMER) && defined(MODULE_GNRC_IPV6)
gnrc_ipv6_netif_t *iface = gnrc_ipv6_netif_get(entry->iface);
timex_t t = iface->reach_time;

Loading…
Cancel
Save