Skip to content

Commit

Permalink
Registered neighbour cache entries are not reregistered. (ARMmbed#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakvenugopal authored Aug 22, 2018
1 parent d93b9e4 commit 21deb75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/6LoWPAN/Thread/thread_nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,7 @@ int thread_nd_address_registration(protocol_interface_info_entry_t *cur, const u
}

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

Expand Down

0 comments on commit 21deb75

Please sign in to comment.