From 22907c7b27c997c77962a4c9006057823e931b71 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Mon, 19 Sep 2016 03:30:14 +0200 Subject: [PATCH] bug #74921: check prefix_length, not length --- src/core/ipv6/nd6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index ff26d095..7806f6e5 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -491,7 +491,7 @@ nd6_input(struct pbuf *p, struct netif *inp) prefix_opt = (struct prefix_option *)buffer; if ((prefix_opt->flags & ND6_PREFIX_FLAG_ON_LINK) && - (prefix_opt->length == 64) && + (prefix_opt->prefix_length == 64) && !ip6_addr_islinklocal(&(prefix_opt->prefix))) { /* Add to on-link prefix list. */ s8_t prefix;