From d1280c31d9394e157c10d1d9a493763f03c3d285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 17 Jun 2017 12:41:48 +0200 Subject: [PATCH] tdehwlib: Allow to gather connection information on virtual net devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdecore/tdehw/tdehardwaredevices.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index d45c79b2d..3cdca9b6e 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -2920,7 +2920,8 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist } } // Gather connection information such as IP addresses - if (ndevice->state().upper() == "UP") { + if ((ndevice->state().upper() == "UP") + || (ndevice->state().upper() == "UNKNOWN")) { struct ifaddrs *ifaddr, *ifa; int family, s; char host[NI_MAXHOST];