From ae0ddac700d0cc3d4d54307d607a92f2d8a67137 Mon Sep 17 00:00:00 2001 From: John Hay Date: Mon, 2 Oct 2006 19:15:10 +0000 Subject: [PATCH] Hopefully the last tweak in trying to make it possible to add ipv6 direct host routes without side effects. Submitted by: JINMEI Tatuya MFC after: 4 days --- sys/netinet6/nd6.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c index fa5f373da8c..c0b5dcdedb8 100644 --- a/sys/netinet6/nd6.c +++ b/sys/netinet6/nd6.c @@ -1313,7 +1313,7 @@ nd6_rtrequest(req, rt, info) 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 @@ -1390,9 +1390,6 @@ nd6_rtrequest(req, rt, info) ip6_sprintf(&llsol), error)); } } - } else if (req == RTM_ADD && SDL(gate)->sdl_alen == 0 && - (rt->rt_flags & RTF_HOST) != 0) { - ln->ln_state = ND6_LLINFO_INCOMPLETE; } break;