tdehwlib: Allow to gather connection information on virtual net devices

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent a73511a98d
commit d1280c31d9

@ -2920,7 +2920,8 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
} }
} }
// Gather connection information such as IP addresses // 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; struct ifaddrs *ifaddr, *ifa;
int family, s; int family, s;
char host[NI_MAXHOST]; char host[NI_MAXHOST];

Loading…
Cancel
Save