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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user