mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 03:38:09 +02:00
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:
parent
8e748bced8
commit
b4954be855
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue