2006-06-09 Dan Williams <dcbw@redhat.com>

* src/NetworkManagerSystem.[ch]
		- (nm_system_device_set_up_down_with_iface): remove 'dev' argument,
			it was unused and pointless
		- (nm_system_vpn_device_set_from_iface, nm_system_device_set_up_down):
			fix for set_up_down_with_iface change

	* src/vpn-manager/nm-vpn-connection.c
		- (nm_vpn_connection_deactivate): fix for set_up_down_with_iface change

	* src/backends/NetworkManagerPaldo.c
	  src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerSuSE.c
	  src/backends/NetworkManagerArch.c
	  src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerGentoo.c
		- (nm_system_enable_loopback): use set_up_down_with_iface where
			appropriate
		- (nm_system_flush_loopback_routes): use flush_routes_with_iface
			where appropriate


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1817 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2006-06-09 14:24:19 +00:00
parent 05dbe5238c
commit 768354a19c
11 changed files with 38 additions and 21 deletions

View File

@@ -302,7 +302,7 @@ gboolean nm_system_device_setup_static_ip4_config (NMDevice *dev)
*/
void nm_system_enable_loopback (void)
{
nm_spawn_process ("/sbin/ifconfig lo up");
nm_system_device_set_up_down_with_iface ("lo", TRUE);
}
@@ -315,7 +315,7 @@ void nm_system_enable_loopback (void)
*/
void nm_system_flush_loopback_routes (void)
{
nm_spawn_process ("/usr/sbin/ip route flush dev lo");
nm_system_device_flush_routes_with_iface ("lo");
}