Disappearing IPv6 default route
John Hay
jhay at meraka.org.za
Mon Oct 2 12:44:30 PDT 2006
> >
> >> - } 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 at meraka.csir.co.za / jhay at 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;
More information about the freebsd-stable
mailing list