summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2001-06-29 16:10:36 +0000
committeritojun <itojun@openbsd.org>2001-06-29 16:10:36 +0000
commit29ee75acdd913ca052f4e97a7bfd2de236a24b0f (patch)
tree6c5546839796f560c92aaa9cb2e6ab6abb3a805b
parenttypos (diff)
downloadwireguard-openbsd-29ee75acdd913ca052f4e97a7bfd2de236a24b0f.tar.xz
wireguard-openbsd-29ee75acdd913ca052f4e97a7bfd2de236a24b0f.zip
call defrouter_select() only if i am autoconfigured host
-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;