about summary refs log tree commit diff
path: root/src/core/devices/wwan
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-12-18 21:32:59 +0100
committerMichael Biebl <biebl@debian.org>2022-12-18 21:32:59 +0100
commitf08ae1668e2f4f5ad4649eb7e47730625026bca2 (patch)
treec836083cba838563c5b333696b796cf28a6a1b0b /src/core/devices/wwan
parentbfd2ca916ff5aa53d394178c3beeb17680a0e2c5 (diff)
parent2965dc70bb3cbfa8de2f279761812b84b87600cb (diff)
Update upstream source from tag 'upstream/1.40.8'
Update to upstream version '1.40.8'
with Debian dir 5c809f5de1842697051e414edf8c873684b9b3fe
Diffstat (limited to 'src/core/devices/wwan')
-rw-r--r--src/core/devices/wwan/nm-modem-broadband.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/devices/wwan/nm-modem-broadband.c b/src/core/devices/wwan/nm-modem-broadband.c
index 997fe727..db4fb29f 100644
--- a/src/core/devices/wwan/nm-modem-broadband.c
+++ b/src/core/devices/wwan/nm-modem-broadband.c
@@ -1123,8 +1123,8 @@ stage3_ip_config_start(NMModem *modem, int addr_family, NMModemIPMethod ip_metho
         address.plen = mm_bearer_ip_config_get_prefix(self->_priv.ipv6_config);
         if (address.plen <= 128) {
             if (IN6_IS_ADDR_LINKLOCAL(&address.address)) {
-                iid_data.id = ((guint64 *) (&address.address.s6_addr))[1];
-                iid         = &iid_data;
+                nm_utils_ipv6_interface_identifier_get_from_addr(&iid_data, &address.address);
+                iid = &iid_data;
             } else
                 do_auto = FALSE;
             nm_l3_config_data_add_address_6(l3cd, &address);