mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
Only send RS messages if we have a LL address in some state other than
invalid.
This commit is contained in:
parent
2aec025e16
commit
2c79332de7
@ -812,7 +812,8 @@ nd6_tmr(void)
|
|||||||
#if LWIP_IPV6_SEND_ROUTER_SOLICIT
|
#if LWIP_IPV6_SEND_ROUTER_SOLICIT
|
||||||
/* Send router solicitation messages, if necessary. */
|
/* Send router solicitation messages, if necessary. */
|
||||||
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||||
if ((netif->rs_count > 0) && (netif->flags & NETIF_FLAG_UP)) {
|
if ((netif->rs_count > 0) && (netif->flags & NETIF_FLAG_UP) &&
|
||||||
|
(!ip6_addr_isinvalid(netif_ip6_addr_state(netif, 0)))) {
|
||||||
if (nd6_send_rs(netif) == ERR_OK) {
|
if (nd6_send_rs(netif) == ERR_OK) {
|
||||||
netif->rs_count--;
|
netif->rs_count--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user