summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2015-03-03 07:54:32 +0000
committerbrad <brad@openbsd.org>2015-03-03 07:54:32 +0000
commitf8b0ff8477c56136df866f839e3ae31f941289ff (patch)
tree66b2b6342542302ec8180afd4ab9dcac63ff476d
parent11a works now. (diff)
downloadwireguard-openbsd-f8b0ff8477c56136df866f839e3ae31f941289ff.tar.xz
wireguard-openbsd-f8b0ff8477c56136df866f839e3ae31f941289ff.zip
Fix a regression introduced when switching from rtsold to the kernel for
router solicitations. Send the router soliciation right away instead of having a 60 second window between enabling SLAAC on the interface and the router solicitation being sent. ok florian@ stsp@ mpi@
-rw-r--r--sys/net/if.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 1bd00d9db0e..a4ccf596609 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.319 2015/02/09 03:09:57 dlg Exp $ */
+/* $OpenBSD: if.c,v 1.320 2015/03/03 07:54:32 brad Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1351,7 +1351,8 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
RS_LHCOOKIE(ifp) = hook_establish(
ifp->if_linkstatehooks, 1, nd6_rs_dev_state, ifp);
if (!timeout_pending(&nd6_rs_output_timer))
- nd6_rs_output_set_timo(nd6_rs_output_timeout);
+ nd6_rs_output_set_timo(
+ ND6_RS_OUTPUT_QUICK_INTERVAL);
}
if ((ifp->if_xflags & IFXF_AUTOCONF6) &&