Merge pull request #531 from Rehan-MALAK/neighbor-discovery-bug

Fix neighbor discovery bug
This commit is contained in:
George Oikonomou 2018-05-18 14:18:52 +01:00 committed by GitHub
commit 8b248ceafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,7 +530,7 @@ na_input(void)
if(nd6_opt_llao != NULL) {
is_llchange =
memcmp(&nd6_opt_llao[UIP_ND6_OPT_DATA_OFFSET], lladdr,
UIP_LLADDR_LEN);
UIP_LLADDR_LEN) == 0 ? 0 : 1;
}
if(nbr->state == NBR_INCOMPLETE) {
if(nd6_opt_llao == NULL || !extract_lladdr_from_llao_aligned(&lladdr_aligned)) {