From f98361d3757240c0162d33a191a612b8d4db5bed Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Fri, 29 Jun 2001 16:10:37 +0000 Subject: call defrouter_select() only if i am autoconfigured host --- sys/netinet6/nd6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet6') 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; -- cgit v1.2.3