Skip to content

Commit df5b699

Browse files
committed
retrieve broadcast address and subnet mask from IEEE802.11 network interface
1 parent b2eb4fd commit df5b699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Net/src/NetworkInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ NetworkInterface::Map NetworkInterface::map(bool ipOnly, bool upOnly)
11501150
case AF_INET:
11511151
{
11521152
// Windows lists broadcast address on localhost
1153-
bool hasBroadcast = (pAddress->IfType == IF_TYPE_ETHERNET_CSMACD) || (pAddress->IfType == IF_TYPE_SOFTWARE_LOOPBACK);
1153+
bool hasBroadcast = (pAddress->IfType == IF_TYPE_ETHERNET_CSMACD) || (pAddress->IfType == IF_TYPE_SOFTWARE_LOOPBACK) || (pAddress->IfType == IF_TYPE_IEEE80211);
11541154
if (hasBroadcast)
11551155
{
11561156
// On Windows, a valid broadcast address will be all 1's (== address | ~subnetMask); additionaly, on pre-Vista versions of

0 commit comments

Comments
 (0)