diff options
author | 2017-08-08 09:03:02 +0000 | |
---|---|---|
committer | 2017-08-08 09:03:02 +0000 | |
commit | d45afd5991d98dc56f940854b4421aaf86fcab7c (patch) | |
tree | 75814554062560caf31a4046f3b7ffe1a01eb668 | |
parent | Fix a bug introduced in r1.1028 while switching enable_network() (diff) | |
download | wireguard-openbsd-d45afd5991d98dc56f940854b4421aaf86fcab7c.tar.xz wireguard-openbsd-d45afd5991d98dc56f940854b4421aaf86fcab7c.zip |
Do not forget to reschedule the timer when we receive a new prefix.
This way the new prefix can be advertized asap. ok florian@
-rw-r--r-- | usr.sbin/rtadvd/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c index 6a98c552803..497fedbf562 100644 --- a/usr.sbin/rtadvd/config.c +++ b/usr.sbin/rtadvd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.61 2017/07/12 06:11:07 florian Exp $ */ +/* $OpenBSD: config.c,v 1.62 2017/08/08 09:03:02 jca Exp $ */ /* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */ /* @@ -625,6 +625,7 @@ make_prefix(struct rainfo *rai, int ifindex, struct in6_addr *addr, int plen) */ rai->initcounter = 0; ra_timer_update(rai); + evtimer_add(&rai->timer.ev, &rai->timer.tm); } /* |