From: Steven Barth Date: Tue, 1 Apr 2014 16:39:38 +0000 (+0200) Subject: Keep managed PD for at least 150 seconds X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4264248aedd515a7c7cf5bcdf29c2ef2e76f938f;p=oweals%2Fodhcpd.git Keep managed PD for at least 150 seconds --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index c8473a7..4bfea18 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -428,6 +428,8 @@ static void managed_handle_pd_data(struct ustream *s, _unused int bytes_new) if (first && c->managed_size == 0) free_dhcpv6_assignment(c); + else if (first) + c->valid_until = now + 150; }