Allow routing IPv6 packets to neighbours with manually-configured non-link-local addresses.

This commit is contained in:
idelamer 2011-06-17 11:05:38 +00:00
parent 137953605e
commit 12a948dacb

View File

@ -1197,6 +1197,13 @@ nd6_is_prefix_in_netif(ip6_addr_t * ip6addr, struct netif * netif)
return 1; return 1;
} }
} }
/* Check to see if address prefix matches a (manually?) configured address. */
for (i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
if (ip6_addr_isvalid(netif_ip6_addr_state(netif, i)) &&
ip6_addr_netcmp(ip6addr, netif_ip6_addr(netif, i))) {
return 1;
}
}
return 0; return 0;
} }