Skip to contentSkip to conversation

netconfig: Don't clear IPv6 addresses on shutdown

PATCH Applied Tim Kourt 2 participants 2 messages Oct 9, 2019

lore
Share & tools
lore

Tim Kourt

author
#0 lore raw

PATCH 1/1 netconfig: Don't clear IPv6 addresses on shutdown

Unlike IPv4, the IPv6 address are removed by the kernel.

---
 src/netconfig.c | 3 ---
 1 file changed, 3 deletions(-)
src/netconfig.c +0 -3
index c48e25b1..c4785fb6 100644
@@ -1111,9 +1111,6 @@ void netconfig_destroy(struct netconfig *netconfig)
 	if (netconfig->rtm_protocol)
 		netconfig_ipv4_select_and_uninstall(netconfig);
 
-	if (netconfig->rtm_v6_protocol)
-		netconfig_ipv6_select_and_uninstall(netconfig);
-
 	if (netconfig->rtm_protocol || netconfig->rtm_v6_protocol)
 		resolve_remove(netconfig->ifindex);
 
Signature · 1 line
2.13.6
#1 lore raw

Hi Tim,

Quoted 4 lines · Tim Kourt

Unlike IPv4, the IPv6 address are removed by the kernel.

---
  src/netconfig.c | 3 ---
  1 file changed, 3 deletions(-)

Applied, thanks.

Regards,
-Denis