MFC: 1.70
Hopefully the last tweak in trying to make it possible to add ipv6 direct host routes without side effects. Submitted by: JINMEI Tatuya Approved by: re (kensmith)
This commit is contained in:
parent
aee5e51d5b
commit
31114092d9
@ -1315,7 +1315,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
|
||||
@ -1392,8 +1392,6 @@ nd6_rtrequest(req, rt, info)
|
||||
ip6_sprintf(&llsol), error));
|
||||
}
|
||||
}
|
||||
} else if (req == RTM_ADD && SDL(gate)->sdl_alen == 0) {
|
||||
ln->ln_state = ND6_LLINFO_INCOMPLETE;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user