From 12a948dacb001b4dad39c347950880198b01c7e5 Mon Sep 17 00:00:00 2001 From: idelamer Date: Fri, 17 Jun 2011 11:05:38 +0000 Subject: [PATCH] Allow routing IPv6 packets to neighbours with manually-configured non-link-local addresses. --- src/core/ipv6/nd6.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index db624972..3cabedec 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -1197,6 +1197,13 @@ nd6_is_prefix_in_netif(ip6_addr_t * ip6addr, struct netif * netif) 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; }