dhcp: Invalidate and Release on Network Removal
authorGrant Erickson <marathon96@gmail.com>
Tue, 31 May 2011 19:55:28 +0000 (21:55 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 31 May 2011 19:55:28 +0000 (21:55 +0200)
commit1121ed73e9a582d8b92574b00202070a65fb150b
treead4283e9bdd1a0c99b956720eac492f0bd03b828
parentb6480b70a2c9ededa0c49101d8a73f8bf45b3efa
dhcp: Invalidate and Release on Network Removal

When removing a network DHCP configuration, invalidate the DHCP
configuration in addition to releasing it.

This addresses a case in which a lower-level network event (e.g. Wi-Fi
disassociation triggered by the driver due to low signal strength)
causes a service disconnect not triggered by connman but then is
recovered BY connman to reuse the prior DHCP lease configuration but
not actually assign it by simply invalidating the old lease
configuration when connman removes the prior network.
src/dhcp.c