tdehwlib: Allow to gather connection information on virtual net devices

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d1280c31d9)
pull/16/head
Slávek Banko 7 years ago
parent 69112fe54a
commit b0c326c2d0

@ -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];

Loading…
Cancel
Save