Skip to content

Commit 21deb75

Browse files
Registered neighbour cache entries are not reregistered. (ARMmbed#1792)
1 parent d93b9e4 commit 21deb75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/6LoWPAN/Thread/thread_nd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ int thread_nd_address_registration(protocol_interface_info_entry_t *cur, const u
547547
}
548548

549549
uint8_t *nce_eui64 = ipv6_neighbour_eui64(&cur->ipv6_neighbour_cache, neigh);
550-
if (neigh->state != IP_NEIGHBOUR_NEW && memcmp(nce_eui64, mac64, 8) != 0)
551-
{
550+
if (neigh->type == IP_NEIGHBOUR_REGISTERED && memcmp(nce_eui64, mac64, 8) != 0) {
552551
return -2;
553552
}
554553

0 commit comments

Comments
 (0)