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:
parent
c73f9d834a
commit
feb0265e43
1 changed files with 2 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue