From 07f3741092fc068d09b5c4dd042f4cb8b52f643d Mon Sep 17 00:00:00 2001 From: Ville Nuorvala Date: Wed, 21 Jan 2004 18:04:13 -0800 Subject: [PATCH] [IPV6]: addrconf_sysctl_forward_strategy() needs to invoke rt6_purge_dflt_routers() too. --- net/ipv6/addrconf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index de4a1da22ae7f..cddaf75c334cd 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -3030,6 +3030,9 @@ static int addrconf_sysctl_forward_strategy(ctl_table *table, idev = NULL; *valp = new; addrconf_forward_change(idev); + + if (*valp) + rt6_purge_dflt_routers(0); } else *valp = new; -- 2.53.0