2004-09-11 Dan Williams <dcbw@redhat.com>

* src/NetworkManager.c
		- Fix race condition between initscripts and NM on card insertion
			which could cause a card to keep an IP address and routes around
			even when it was not the active device

	* src/NetworkManagerDbus.c
		- Fix compile errors, free more DBusErrors


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@154 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2004-09-12 15:39:05 +00:00
parent 71919da4bf
commit 53e50a9c7e
3 changed files with 28 additions and 4 deletions

View File

@@ -372,6 +372,18 @@ gboolean nm_link_state_monitor (gpointer user_data)
*/
nm_device_update_ip4_address (dev);
}
else
{
/* Ensure that the device has no IP address or routes. This will
* sometimes occur when a card gets inserted, and the system
* initscripts will run to bring the card up, but they get around to
* running _after_ we've been notified of insertion and cleared out
* card info already.
*/
nm_system_device_flush_routes (dev);
if (nm_device_get_ip4_address (dev) != 0)
nm_system_device_flush_addresses (dev);
}
}
element = g_slist_next (element);