net: if: Stop IPv6 router solicitation if interface goes down

Make sure RS process is stopped if network interface goes down
as there is no point doing it any more.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2025-04-23 13:45:02 +03:00 committed by Benjamin Cabé
commit feb0265e43

View file

@ -3392,6 +3392,8 @@ static void iface_ipv6_stop(struct net_if *iface)
IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->network_counter++));
IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->iid = NULL));
net_if_stop_rs(iface);
/* Remove all autoconf addresses */
ARRAY_FOR_EACH(ipv6->unicast, i) {
if (ipv6->unicast[i].is_used &&