mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 13:30:08 +01:00
core: don't bounce disable_ipv6 if NM IPv6LL wasn't enabled (bgo #740702)
If NM IPv6LL wasn't enabled then there is no need to bounce disable_ipv6
to tell the kernel to re-enable kernel IPv6LL, because kernel IPv6LL
is already enabled.
https://bugzilla.gnome.org/show_bug.cgi?id=740702
(cherry picked from commit 27c1a73ae0)
This commit is contained in:
parent
e099433b01
commit
86aa908b60
1 changed files with 4 additions and 1 deletions
|
|
@ -4455,12 +4455,15 @@ act_stage3_ip6_config_start (NMDevice *self,
|
|||
|
||||
if (strcmp (method, NM_SETTING_IP6_CONFIG_METHOD_IGNORE) == 0) {
|
||||
if (!priv->master) {
|
||||
gboolean old_nm_ipv6ll = priv->nm_ipv6ll;
|
||||
|
||||
/* When activating an IPv6 'ignore' connection we need to revert back
|
||||
* to kernel IPv6LL, but the kernel won't actually assign an address
|
||||
* to the interface until disable_ipv6 is bounced.
|
||||
*/
|
||||
set_nm_ipv6ll (self, FALSE);
|
||||
nm_device_ipv6_sysctl_set (self, "disable_ipv6", "1");
|
||||
if (old_nm_ipv6ll == TRUE)
|
||||
nm_device_ipv6_sysctl_set (self, "disable_ipv6", "1");
|
||||
restore_ip6_properties (self);
|
||||
}
|
||||
return NM_ACT_STAGE_RETURN_STOP;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue