| To: | davem@xxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy() |
| From: | Ville Nuorvala <vnuorval@xxxxxxxxxx> |
| Date: | Thu, 22 Jan 2004 12:59:07 +0200 (EET) |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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@xxxxxxxxxx, phone: +358 (0)9 451 5257
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PROBLEM] r8169 deadlocks, Srihari Vijayaraghavan |
|---|---|
| Next by Date: | Re: [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy(), YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | Fw: Re: Link error with linux-2.5 bk, Andi Kleen |
| Next by Thread: | Re: [PATCH|RFC] IPv6: Equal behavior in addrconf_sysctl_forward() and addrconf_sysctl_forward_strategy(), YOSHIFUJI Hideaki / 吉藤英明 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |