netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy()
@ 2004-01-22 10:59 Ville Nuorvala
  2004-01-22 11:03 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 3+ messages in thread
From: Ville Nuorvala @ 2004-01-22 10:59 UTC (permalink / raw)
  To: davem, yoshfuji; +Cc: netdev

Hi guys,

is there any reason for _forward() to call rt6_purge_dflt_routers(), but
_forward_strategy() not do the same?

If no, the patch below should fix this.

Thanks,
Ville

===== net/ipv6/addrconf.c 1.86 vs edited =====
--- 1.86/net/ipv6/addrconf.c	Tue Jan 20 06:59:54 2004
+++ edited/net/ipv6/addrconf.c	Thu Jan 22 12:22:21 2004
@@ -3030,6 +3030,9 @@
 			idev = NULL;
 		*valp = new;
 		addrconf_forward_change(idev);
+
+		if (*valp)
+			rt6_purge_dflt_routers(0);
 	} else
 		*valp = new;


--
Ville Nuorvala
Research Assistant, Institute of Digital Communications,
Helsinki University of Technology
email: vnuorval@tcs.hut.fi, phone: +358 (0)9 451 5257

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy()
  2004-01-22 10:59 [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy() Ville Nuorvala
@ 2004-01-22 11:03 ` YOSHIFUJI Hideaki / 吉藤英明
  2004-01-22 17:57   ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2004-01-22 11:03 UTC (permalink / raw)
  To: vnuorval, davem; +Cc: netdev, yoshfuji

In article <Pine.LNX.4.58.0401221253040.1098@rhea.tcs.hut.fi> (at Thu, 22 Jan 2004 12:59:07 +0200 (EET)), Ville Nuorvala <vnuorval@tcs.hut.fi> says:

> If no, the patch below should fix this.

Agreed. Please apply, David.

--yoshfuji

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy()
  2004-01-22 11:03 ` YOSHIFUJI Hideaki / 吉藤英明
@ 2004-01-22 17:57   ` David S. Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David S. Miller @ 2004-01-22 17:57 UTC (permalink / raw)
  To: YOSHIFUJI Hideaki / _$B5HF#1QL@; +Cc: vnuorval, netdev, yoshfuji

On Thu, 22 Jan 2004 20:03:08 +0900 (JST)
YOSHIFUJI Hideaki / _$B5HF#1QL@ <yoshfuji@linux-ipv6.org> wrote:

> In article <Pine.LNX.4.58.0401221253040.1098@rhea.tcs.hut.fi> (at Thu, 22 Jan 2004 12:59:07 +0200 (EET)), Ville Nuorvala <vnuorval@tcs.hut.fi> says:
> 
> > If no, the patch below should fix this.
> 
> Agreed. Please apply, David.

Done, thanks everyone.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-22 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22 10:59 [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy() Ville Nuorvala
2004-01-22 11:03 ` YOSHIFUJI Hideaki / 吉藤英明
2004-01-22 17:57   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).