mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 05:38:15 +02:00
device: clean up exported IP6 config when flushing addresses
After flushing addresses and routes, it's also necessary to update the exported IP6 configuration. https://bugzilla.redhat.com/show_bug.cgi?id=1848888 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/551 Fixes:e302f5ff77('device: flush IP configuration of slaves during activation') (cherry picked from commit071104124b) (cherry picked from commit2b5ba370a6)
This commit is contained in:
parent
d4fa4e0602
commit
96f230bcee
1 changed files with 3 additions and 0 deletions
|
|
@ -10607,8 +10607,11 @@ act_stage3_ip_config_start (NMDevice *self,
|
||||||
platform = nm_device_get_platform (self);
|
platform = nm_device_get_platform (self);
|
||||||
|
|
||||||
if (ifindex > 0) {
|
if (ifindex > 0) {
|
||||||
|
gs_unref_object NMIP6Config *config = nm_device_ip6_config_new (self);
|
||||||
|
|
||||||
nm_platform_ip_route_flush (platform, AF_INET6, ifindex);
|
nm_platform_ip_route_flush (platform, AF_INET6, ifindex);
|
||||||
nm_platform_ip_address_flush (platform, AF_INET6, ifindex);
|
nm_platform_ip_address_flush (platform, AF_INET6, ifindex);
|
||||||
|
nm_device_set_ip_config (self, AF_INET6, (NMIPConfig *) config, FALSE, NULL);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gboolean ipv6ll_handle_old = priv->ipv6ll_handle;
|
gboolean ipv6ll_handle_old = priv->ipv6ll_handle;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue