diff options
author | Slávek Banko <[email protected]> | 2017-06-17 12:41:48 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-06-17 12:42:02 +0200 |
commit | b0c326c2d012b9bf5d764281f344be51cdfafc3f (patch) | |
tree | ec5660e42001e74f6e9564f3fbf525524e9762e2 /tdecore | |
parent | 69112fe54a0c771db49a8dc921c03c08b3dbeefa (diff) | |
download | tdelibs-b0c326c2d012b9bf5d764281f344be51cdfafc3f.tar.gz tdelibs-b0c326c2d012b9bf5d764281f344be51cdfafc3f.zip |
tdehwlib: Allow to gather connection information on virtual net devices
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit d1280c31d9394e157c10d1d9a493763f03c3d285)
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/tdehw/tdehardwaredevices.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tdecore/tdehw/tdehardwaredevices.cpp b/tdecore/tdehw/tdehardwaredevices.cpp index fde568acf..2ddb16abb 100644 --- a/tdecore/tdehw/tdehardwaredevices.cpp +++ b/tdecore/tdehw/tdehardwaredevices.cpp @@ -2857,7 +2857,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]; |