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
This commit is contained in:
John Hay 2006-10-02 19:15:10 +00:00
parent 12d828393a
commit ae0ddac700

View File

@ -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;