summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/nd6.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2006-10-02 19:15:10 +0000
committerjhay <jhay@FreeBSD.org>2006-10-02 19:15:10 +0000
commit8c3f4d74b07441a38aa4f9cf4017257f2d82830b (patch)
treed5ef4e02b2b2822a6e9042c6bbaa1b61bf7f39e9 /sys/netinet6/nd6.c
parent120ed3e161cca4527a1a3349d85a82b664d25702 (diff)
downloadFreeBSD-src-8c3f4d74b07441a38aa4f9cf4017257f2d82830b.zip
FreeBSD-src-8c3f4d74b07441a38aa4f9cf4017257f2d82830b.tar.gz
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
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r--sys/netinet6/nd6.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index fa5f373..c0b5dcd 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;
OpenPOWER on IntegriCloud