modem: it is not a problem to flush IPv6 global routes

Whether they are supported or not. We already remove all addressess.
This commit is contained in:
Pavel Šimerda
2013-01-23 09:07:17 +01:00
parent 8e748bced8
commit b4954be855

View File

@@ -545,8 +545,7 @@ deactivate (NMModem *self, NMDevice *device)
case MM_MODEM_IP_METHOD_DHCP: case MM_MODEM_IP_METHOD_DHCP:
ifindex = nm_device_get_ip_ifindex (device); ifindex = nm_device_get_ip_ifindex (device);
if (ifindex > 0) { if (ifindex > 0) {
/* FIXME: use AF_UNSPEC here when we have IPv6 support */ nm_system_iface_flush_routes (ifindex, AF_UNSPEC);
nm_system_iface_flush_routes (ifindex, AF_INET);
nm_system_iface_flush_addresses (ifindex, AF_UNSPEC); nm_system_iface_flush_addresses (ifindex, AF_UNSPEC);
nm_system_iface_set_up (ifindex, FALSE, NULL); nm_system_iface_set_up (ifindex, FALSE, NULL);
} }