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