commit | 1f916e4adae8f937b9023e74307bde8ef8743282 | [log] [tgz] |
---|---|---|
author | Paul Stewart <pstew@chromium.org> | Mon Dec 23 09:52:54 2013 -0800 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Sat Jan 04 04:39:39 2014 +0000 |
tree | 6d49bb54ac607999821913525fa241c796723079 | |
parent | e5821431a119a22f14acc75b4a180fd4564b9c6e [diff] |
shill: DhcpConfig: Vacate lease if it expires If the DHCP client fails to renew a lease, we should disconnect the service, and stop using the IP address. We implement this by adding a timer to the DHCPConfig that re-starts the DHCP instance if the lease is not renewed before the lease expires. This covers a variety of situations where the DHCP client was unable to acquire a lease in time: - The DHCP server was actively denying a renewal - The DHCP server stopped responding responding - The DHCP client encountered some failure but didn't exit By restarting the DHCP instance, we start a fresh DHCP process with a new acquisition timer. If this acquisition process times out the service will disconnect with a DHCP failure. BUG=chromium:216710 TEST=Unit tests; modified network_DhcpRenew autotest (CL:181069) Change-Id: I63037246f9fefca65a4c0f5ca30a29ac39a51662 Reviewed-on: https://chromium-review.googlesource.com/181133 Reviewed-by: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Paul Stewart <pstew@chromium.org>