net/lwip : trivial patch, remove nd6_sflag condition
This commit is trivial patch, remove nd6_sflag condition
- when lladdr is updated, state should be updated to STALE
- state value is over-written when nd6_sflag is enabled
@@ -344,11 +344,8 @@ void nd6_input(struct pbuf *p, struct netif *inp)
} else {
if (lladdr_diff != 0) {
MEMCPY(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len);
-
- if (nd6_sflag == 0) {
neighbor_cache[i].state = ND6_STALE;
}
- }
if (nd6_sflag) {
neighbor_cache[i].state = ND6_REACHABLE;
