fixed bug #47921: link-local prefix in router advertisement must not be processes for SLAAC (patch by abhishek ambure)

This commit is contained in:
goldsimon 2016-08-25 14:20:40 +02:00
parent 3e23eb764b
commit 89aa4e7d79

View File

@ -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;