Skip to content

Commit feb0265

Browse files
jukkarkartben
authored andcommitted
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>
1 parent c73f9d8 commit feb0265

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/net/ip/net_if.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3392,6 +3392,8 @@ static void iface_ipv6_stop(struct net_if *iface)
33923392
IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->network_counter++));
33933393
IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->iid = NULL));
33943394

3395+
net_if_stop_rs(iface);
3396+
33953397
/* Remove all autoconf addresses */
33963398
ARRAY_FOR_EACH(ipv6->unicast, i) {
33973399
if (ipv6->unicast[i].is_used &&

0 commit comments

Comments
 (0)