summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-12-16 22:25:35 +0100
committerThomas Haller <thaller@redhat.com>2014-12-16 22:25:35 +0100
commit5cca99074263d8c83cd1c6aff98776979670bb68 (patch)
treee7e608832a9862da88bc5261f1e9ac231e8ea0c1
parent8dd6a3b60075700ce2c0976670bd1d55fd5ae135 (diff)
parent28d3db6bf33970b02a547a26a35f5837cb69087d (diff)
downloadNetworkManager-5cca99074263d8c83cd1c6aff98776979670bb68.tar.gz
Merge branch 'backport-1-0/assume-ipv6-bgo740702' into nm-1-0
-rw-r--r--src/devices/nm-device.c5
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;