From 7673a1d3a35c3e0a26301b5c605b2f68d4b58de1 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 28 Feb 2014 10:22:28 -0600 Subject: bearer-mbim: use DHCP method when only an IPv6 link-local address is found When only given a link-local address, then SLAAC must be used to retrieve the real prefix. --- src/mm-bearer-mbim.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index b1e3176c..c25b2811 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -370,6 +370,14 @@ ip_configuration_query_ready (MbimDevice *device, str = g_inet_address_to_string (addr); mm_bearer_ip_config_set_address (ipv6_config, str); g_free (str); + + /* If the address is a link-local one, then SLAAC or DHCP must be used + * to get the real prefix and address. Change the method to DHCP to + * indicate this to clients. + */ + if (g_inet_address_get_is_link_local (addr)) + mm_bearer_ip_config_set_method (ipv6_config, MM_BEARER_IP_METHOD_DHCP); + g_object_unref (addr); /* Netmask */ -- cgit v1.2.3-70-g09d2