summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-29 16:10:37 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-29 16:10:37 +0000
commitf98361d3757240c0162d33a191a612b8d4db5bed (patch)
tree2c44298f2192d9d3193bd2098dbf973ee4ca13d7 /sys/netinet6
parent38eb061141008f09f5858c8c3b31b98d43696214 (diff)
call defrouter_select() only if i am autoconfigured host
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 636939c1fed..06110793d2a 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.36 2001/06/27 17:51:39 itojun Exp $ */
+/* $OpenBSD: nd6.c,v 1.37 2001/06/29 16:10:36 itojun Exp $ */
/* $KAME: nd6.c,v 1.151 2001/06/19 14:24:41 sumikawa Exp $ */
/*
@@ -1759,7 +1759,7 @@ fail:
* we can compromise the overhead, since it only happens the first
* time.
*/
- if (do_update && ln->ln_router)
+ if (do_update && ln->ln_router && !ip6_forwarding && ip6_accept_rtadv)
defrouter_select();
return rt;