]> git.neil.brown.name Git - history.git/commitdiff
[IPV6]: addrconf_sysctl_forward_strategy() needs to invoke rt6_purge_dflt_routers...
authorVille Nuorvala <vnourval@tcs.hut.fi>
Thu, 22 Jan 2004 02:04:13 +0000 (18:04 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 22 Jan 2004 02:04:13 +0000 (18:04 -0800)
net/ipv6/addrconf.c

index de4a1da22ae7fb57522c786d24fec0952b0007e6..cddaf75c334cdac209c1aa89810a112c6429e36e 100644 (file)
@@ -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;