From 1a294622d044cdc1d3b9fa83214de1f4f04adcb1 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 8 Jun 2018 22:45:55 +0200 Subject: [PATCH] ipv6 router solicitation: "ensure at least one solicitation is sent" Fix the case where nd6_send_rs() fails: send one solicitation here, not LWIP_ND6_MAX_MULTICAST_SOLICIT. Signed-off-by: Simon Goldschmidt --- src/core/ipv6/nd6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index f9f3a1e2..68ae628e 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -587,6 +587,8 @@ nd6_input(struct pbuf *p, struct netif *inp) if ((inp->rs_count < LWIP_ND6_MAX_MULTICAST_SOLICIT) || (nd6_send_rs(inp) == ERR_OK)) { inp->rs_count = 0; + } else { + inp->rs_count = 1; } #endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */