summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:41:48 +0200
committerSlávek Banko <slavek.banko@axis.cz>2017-06-17 12:41:48 +0200
commitd1280c31d9394e157c10d1d9a493763f03c3d285 (patch)
treed9c3bafe3b674a39fc2df39a66e9efe3d0df424f
parenta73511a98d46bd9cceff8da7819b8ab523b9ad6c (diff)
downloadtdelibs-d1280c31d9394e157c10d1d9a493763f03c3d285.tar.gz
tdelibs-d1280c31d9394e157c10d1d9a493763f03c3d285.zip
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 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];