summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-17 10:41:48 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2017-06-17 10:41:48 (GMT)
commitd1280c31d9394e157c10d1d9a493763f03c3d285 (patch)
treed9c3bafe3b674a39fc2df39a66e9efe3d0df424f
parenta73511a98d46bd9cceff8da7819b8ab523b9ad6c (diff)
downloadtdelibs-d1280c31.zip
tdelibs-d1280c31.tar.gz
tdehwlib: Allow to gather connection information on virtual net devices
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--tdecore/tdehw/tdehardwaredevices.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp
index d45c79b..3cdca9b 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];