summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2022-03-31 11:16:12 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2022-04-01 09:13:57 +0200
commit586afdfc5298285d09a5b4965690899833a21abb (patch)
tree28b32a9baf0958976189a2287a6adbacedb2b482
parent2bbe7f920472ab8ea5913a261d3d69a22561df58 (diff)
wwan: re-enable IPv6 once the modem returns a IPv6 configurationbg/modem-ipv6
IPv6 gets disabled at the beginning of the activation in ip_ifindex_changed_cb(). Enable it again when the modem returns a IPv6 configuration. Fixes: 58287cbcc0c8 ('core: rework IP configuration in NetworkManager using layer 3 configuration') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/944 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1170
-rw-r--r--src/core/devices/wwan/nm-device-modem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/devices/wwan/nm-device-modem.c b/src/core/devices/wwan/nm-device-modem.c
index 31c03f7350..77ba1b248f 100644
--- a/src/core/devices/wwan/nm-device-modem.c
+++ b/src/core/devices/wwan/nm-device-modem.c
@@ -181,8 +181,10 @@ modem_new_config(NMModem *modem,
return;
}
- if (!IS_IPv4)
+ if (!IS_IPv4) {
priv->iid = iid ? *iid : ((NMUtilsIPv6IfaceId) NM_UTILS_IPV6_IFACE_ID_INIT);
+ nm_device_sysctl_ip_conf_set(device, AF_INET6, "disable_ipv6", "0");
+ }
if (do_auto) {
if (IS_IPv4)