mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
fixed bug #42885 nd6_reachability_hint() accepts an address of an
unknown neighbour
This commit is contained in:
parent
e30823769c
commit
8451feaa7a
@ -1798,6 +1798,11 @@ nd6_reachability_hint(const ip6_addr_t * ip6addr)
|
||||
return;
|
||||
}
|
||||
|
||||
/* For safety: don't set as reachable if we don't have a LL address yet. Misuse protection. */
|
||||
if (neighbor_cache[i].state == ND6_INCOMPLETE || neighbor_cache[i].state == ND6_NO_ENTRY) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Set reachability state. */
|
||||
neighbor_cache[i].state = ND6_REACHABLE;
|
||||
neighbor_cache[i].counter.reachable_time = reachable_time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user