From bd17fc6d2402a97c467930696de1e401cb5d9942 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 4 Feb 2016 16:31:01 +0100 Subject: [PATCH] platform: assume support for IPv6 temporary addrsses if detection fails We detect support for IPv6 temporary addresses (IFA_F_MANAGETEMPADDR) or /64 v6 prefixes (IFA_F_NOPREFIXROUTE) based on the presence of extended address flags. For the most part this just works, but it fails down if upon initialization no addresses are present. In such a case we would have assumed no support. Change that to default to available support as the feature is already 2 years in upstream kernel. --- src/platform/nm-linux-platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index a04c8ece6c..3597e60b62 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2338,8 +2338,8 @@ static gboolean _support_kernel_extended_ifa_flags_get (void) { if (_support_kernel_extended_ifa_flags_still_undecided ()) { - _LOG2W ("support: kernel-extended-ifa-flags: unable to detect kernel support for handling IPv6 temporary addresses. Assume none"); - _support_kernel_extended_ifa_flags = 0; + _LOG2W ("support: kernel-extended-ifa-flags: unable to detect kernel support for handling IPv6 temporary addresses. Assume support"); + _support_kernel_extended_ifa_flags = 1; } return _support_kernel_extended_ifa_flags; }