mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 03:14:04 +00:00
Allow routing IPv6 packets to neighbours with manually-configured non-link-local addresses.
This commit is contained in:
parent
137953605e
commit
12a948dacb
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user