]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
react more quickly to DHCPv6-replies
authorSteven Barth <steven@midlink.org>
Fri, 1 Feb 2013 07:29:20 +0000 (08:29 +0100)
committerSteven Barth <steven@midlink.org>
Fri, 1 Feb 2013 07:29:20 +0000 (08:29 +0100)
src/dhcpv6.c

index 599870e76852b391ec4450ed239c395f9abc84ce..773e7ef930bc721988cdb26ef6e9f4cfb9666155 100644 (file)
@@ -412,6 +412,9 @@ int dhcpv6_request(enum dhcpv6_msg type)
                                if (retx->handler_reply)
                                        len = retx->handler_reply(
                                                        type, opt, opt_end);
+
+                               if (round_end - round_start > 1000)
+                                       round_end = 1000 + round_start;
                        }
                }