mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 22:31:23 +01:00
retrieve broadcast address and subnet mask from IEEE802.11 network interface
This commit is contained in:
parent
b2eb4fda59
commit
df5b6990a5
@ -1150,7 +1150,7 @@ NetworkInterface::Map NetworkInterface::map(bool ipOnly, bool upOnly)
|
||||
case AF_INET:
|
||||
{
|
||||
// Windows lists broadcast address on localhost
|
||||
bool hasBroadcast = (pAddress->IfType == IF_TYPE_ETHERNET_CSMACD) || (pAddress->IfType == IF_TYPE_SOFTWARE_LOOPBACK);
|
||||
bool hasBroadcast = (pAddress->IfType == IF_TYPE_ETHERNET_CSMACD) || (pAddress->IfType == IF_TYPE_SOFTWARE_LOOPBACK) || (pAddress->IfType == IF_TYPE_IEEE80211);
|
||||
if (hasBroadcast)
|
||||
{
|
||||
// On Windows, a valid broadcast address will be all 1's (== address | ~subnetMask); additionaly, on pre-Vista versions of
|
||||
|
Loading…
x
Reference in New Issue
Block a user