Keep managed PD for at least 150 seconds
authorSteven Barth <steven@midlink.org>
Tue, 1 Apr 2014 16:39:38 +0000 (18:39 +0200)
committerSteven Barth <steven@midlink.org>
Tue, 1 Apr 2014 16:39:38 +0000 (18:39 +0200)
src/dhcpv6-ia.c

index c8473a7cdd6c6bb6949076ffc11c1a79496994db..4bfea18ec3b19e220e1a4a2b7794bda2c1d48ca0 100644 (file)
@@ -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;
 }