mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-03 17:17:12 +02:00
fix whitespaces
This commit is contained in:
parent
8ea4fa9c36
commit
f8bfe8cb0a
@ -905,20 +905,20 @@ NetworkInterface::NetworkInterfaceList NetworkInterface::list()
|
|||||||
int ifIndex(-1);
|
int ifIndex(-1);
|
||||||
if (currIface->ifa_addr)
|
if (currIface->ifa_addr)
|
||||||
{
|
{
|
||||||
switch (currIface->ifa_addr->sa_family)
|
switch (currIface->ifa_addr->sa_family)
|
||||||
{
|
{
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
ifIndex = if_nametoindex(currIface->ifa_name);
|
ifIndex = if_nametoindex(currIface->ifa_name);
|
||||||
addr = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(currIface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex);
|
addr = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(currIface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex);
|
||||||
haveAddr = true;
|
haveAddr = true;
|
||||||
break;
|
break;
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
addr = IPAddress(*(currIface->ifa_addr));
|
addr = IPAddress(*(currIface->ifa_addr));
|
||||||
haveAddr = true;
|
haveAddr = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (haveAddr)
|
if (haveAddr)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user