diff options
author | Thomas Haller <thaller@redhat.com> | 2014-12-16 22:25:35 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-12-16 22:25:35 +0100 |
commit | 5cca99074263d8c83cd1c6aff98776979670bb68 (patch) | |
tree | e7e608832a9862da88bc5261f1e9ac231e8ea0c1 | |
parent | 8dd6a3b60075700ce2c0976670bd1d55fd5ae135 (diff) | |
parent | 28d3db6bf33970b02a547a26a35f5837cb69087d (diff) | |
download | NetworkManager-5cca99074263d8c83cd1c6aff98776979670bb68.tar.gz |
Merge branch 'backport-1-0/assume-ipv6-bgo740702' into nm-1-0
-rw-r--r-- | src/devices/nm-device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index c04a973877..3459f4f8d5 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -4411,12 +4411,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) + nm_device_ipv6_sysctl_set (self, "disable_ipv6", "1"); restore_ip6_properties (self); } return NM_ACT_STAGE_RETURN_STOP; |