commit | d973537ee1bd013b4233d3369d66821e124a2e65 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Jun 02 13:15:50 2015 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Jun 02 16:21:17 2015 +0900 |
tree | 57f67609e47e2964b1726b700042425bffe5134c | |
parent | 99fbb56a0ab81ead404480f0c2df529332a93a32 [diff] |
Fix DHCP lease time parsing. Currently we treat a lease time larger than 2**31-1 as a negative value, which causes DhcpClient to attempt to renew its IP address constantly. Fix this by properly handling large and infinite lifetimes, and while we're at it, impose a minimum lease time of 60 seconds. Bug: 21352084 Change-Id: If62c9efeffad6222e2fe0c110f77d0e4c70de96d