From feb0265e439dcade368950cb5daa84046142f33b Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 23 Apr 2025 13:45:02 +0300 Subject: [PATCH] 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 --- subsys/net/ip/net_if.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/net/ip/net_if.c b/subsys/net/ip/net_if.c index 48bd508d577..3a56b606e01 100644 --- a/subsys/net/ip/net_if.c +++ b/subsys/net/ip/net_if.c @@ -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 &&