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 <goldsimon@gmx.de>
This commit is contained in:
Simon Goldschmidt 2018-06-08 22:45:55 +02:00
parent fd050b8a97
commit 1a294622d0

View File

@ -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 */