mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-27 06:14:09 +00:00
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:
parent
fd050b8a97
commit
1a294622d0
@ -587,6 +587,8 @@ nd6_input(struct pbuf *p, struct netif *inp)
|
|||||||
if ((inp->rs_count < LWIP_ND6_MAX_MULTICAST_SOLICIT) ||
|
if ((inp->rs_count < LWIP_ND6_MAX_MULTICAST_SOLICIT) ||
|
||||||
(nd6_send_rs(inp) == ERR_OK)) {
|
(nd6_send_rs(inp) == ERR_OK)) {
|
||||||
inp->rs_count = 0;
|
inp->rs_count = 0;
|
||||||
|
} else {
|
||||||
|
inp->rs_count = 1;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */
|
#endif /* LWIP_IPV6_SEND_ROUTER_SOLICIT */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user