fixup! net/lwip : neighbor cache should be updated when lladdr option exists on RA
@@ -681,7 +681,6 @@ void nd6_input(struct pbuf *p, struct netif *inp)
offset += 8 * ((u16_t) buffer[1]);
}
- if (lladdr_opt != NULL) {
/* Get the matching default router entry. */
i = nd6_get_router(ip6_current_src_addr(), inp);
if (i < 0) {
@@ -719,6 +718,7 @@ void nd6_input(struct pbuf *p, struct netif *inp)
/* Update flags in local entry (incl. preference). */
default_router_list[i].flags = ND6H_RA_FLAG(ra_hdr);
+ if (lladdr_opt != NULL) {
if (default_router_list[i].neighbor_entry == NULL) {
/* default router table has been created but "no entry on neighbor cache" */
/* Create new neighbor cache */
