diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-08-08 09:03:03 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-08-08 09:03:03 +0000 |
commit | c1076fd3fa03ca9a2b6ac6c1953d6effb85752c7 (patch) | |
tree | 0e56df9873612e32d50db814b3a36e54e5d548c3 | |
parent | 5d933e75be6e2308cc451194274afe81e6c52063 (diff) |
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); } /* |