Date: Mon, 2 Oct 2006 21:44:22 +0200 From: John Hay <jhay@meraka.org.za> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: freebsd-stable@freebsd.org Subject: Re: Disappearing IPv6 default route Message-ID: <20061002194422.GA34602@zibbi.meraka.csir.co.za> In-Reply-To: <451FAE49.304@infracaninophile.co.uk> References: <451EC677.6000404@infracaninophile.co.uk> <20060930203522.GA69912@zibbi.meraka.csir.co.za> <20061001093100.O91466@godot.imp.ch> <451FAE49.304@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> >
> >> - } else if (req == RTM_ADD && SDL(gate)->sdl_alen == 0) {
> >> + } else if (req == RTM_ADD && SDL(gate)->sdl_alen == 0 &&
> >> + (rt->rt_flags & RTF_HOST) != 0) {
> >> ln->ln_state = ND6_LLINFO_INCOMPLETE;
>
> Please do MFC. This patch seems to have solved all the problems I was
> experiencing, and I can see the dancing Kame again now.
>
> Cheers,
>
> Matthew
Can you please try this patch too? The previous one I gave you, still
have some unwanted side effect. This one is by JINMEI, Tatuya and
seems to be without any... As far as I could test.
Thanks.
John
--
John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org
Index: nd6.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet6/nd6.c,v
retrieving revision 1.48.2.14
diff -u -r1.48.2.14 nd6.c
--- nd6.c 20 Sep 2006 19:10:18 -0000 1.48.2.14
+++ nd6.c 2 Oct 2006 08:17:30 -0000
@@ -1315,7 +1315,7 @@
callout_init(&ln->ln_timer_ch, 0);
/* this is required for "ndp" command. - shin */
- if (req == RTM_ADD) {
+ if (req == RTM_ADD && (rt->rt_flags & RTF_STATIC)) {
/*
* gate should have some valid AF_LINK entry,
* and ln->ln_expire should have some lifetime
@@ -1392,8 +1392,6 @@
ip6_sprintf(&llsol), error));
}
}
- } else if (req == RTM_ADD && SDL(gate)->sdl_alen == 0) {
- ln->ln_state = ND6_LLINFO_INCOMPLETE;
}
break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061002194422.GA34602>
