mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
fixed bug #47921: link-local prefix in router advertisement must not be processes for SLAAC (patch by abhishek ambure)
This commit is contained in:
parent
3e23eb764b
commit
89aa4e7d79
@ -485,7 +485,9 @@ nd6_input(struct pbuf *p, struct netif *inp)
|
||||
struct prefix_option *prefix_opt;
|
||||
prefix_opt = (struct prefix_option *)buffer;
|
||||
|
||||
if (prefix_opt->flags & ND6_PREFIX_FLAG_ON_LINK) {
|
||||
if ((prefix_opt->flags & ND6_PREFIX_FLAG_ON_LINK) &&
|
||||
(prefix_opt->length == 64) &&
|
||||
!ip6_addr_islinklocal(&(prefix_opt->prefix))) {
|
||||
/* Add to on-link prefix list. */
|
||||
s8_t prefix;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user