ppp: allow autoconf6 when ipv6.method is 'auto'

PPP supports IPv6 autoconfiguration.

Fixes: 58287cbcc0 ('core: rework IP configuration in NetworkManager using layer 3 configuration')
(cherry picked from commit 041df05f3c)
This commit is contained in:
Beniamino Galvani 2022-03-15 17:59:21 +01:00
parent 2e4d1e8dc6
commit d3615b2a1c

View file

@ -222,10 +222,9 @@ get_ip_method_auto(NMDevice *device, int addr_family)
return NM_SETTING_IP6_CONFIG_METHOD_MANUAL;
}
/* We can do autoconf6 on an PPP link, but we should already get an IPv6
* address from pppd. Use that instead. We however do want to generate our
* (own) IPv6 link local address, so return "link-local". */
return NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL;
/* We get a interface identifier via IPV6CP, used to construct a link-local
* address. Method auto means autoconf6 as usual.*/
return NM_SETTING_IP6_CONFIG_METHOD_AUTO;
}
static gboolean