Changeset 67431 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Jun 15, 2017 9:41:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r67390 r67431 25 25 #define NETIF_WITHOUT_NETCFG 26 26 27 #include <iprt/asm.h>28 27 #include <iprt/err.h> 29 28 #include <list> … … 181 180 { 182 181 fIPv6Found = true; 183 ASMBitSetRange(&pInfo->IPv6NetMask, 0, pPrefix->PrefixLength);182 RTNetPrefixToMaskIPv6(pPrefix->PrefixLength, &pInfo->IPv6NetMask); 184 183 } 185 184 else … … 1715 1714 { 1716 1715 uPrefixLenV6 = pPrefix->PrefixLength; 1717 ASMBitSetRange(&pInfo->IPv6NetMask, 0, pPrefix->PrefixLength);1716 RTNetPrefixToMaskIPv6(pPrefix->PrefixLength, &pInfo->IPv6NetMask); 1718 1717 } 1719 1718 else … … 1775 1774 netIfLog(("netIfFillInfoWithAddresses: Invalid IPv6 prefix length of %d\n", pAddrLh->OnLinkPrefixLength)); 1776 1775 else 1777 ASMBitSetRange(&pInfo->IPv6NetMask, 0, pAddrLh->OnLinkPrefixLength);1776 RTNetPrefixToMaskIPv6(pAddrLh->OnLinkPrefixLength, &pInfo->IPv6NetMask); 1778 1777 } 1779 1778 break; 1780 1779 } 1781 1780 } 1782 netIfLog(("netIfFillInfoWithAddresses: %RTnaipv4/%u\n", 1783 pInfo->IPAddress, ASMBitFirstClear(&pInfo->IPNetMask, sizeof(RTNETADDRIPV4)*8))); 1784 netIfLog(("netIfFillInfoWithAddresses: %RTnaipv6/%u\n", 1785 &pInfo->IPv6Address, composeIPv6PrefixLenghFromAddress(&pInfo->IPv6NetMask))); 1781 1782 if (fIPFound) 1783 { 1784 int iPrefixIPv4 = -1; 1785 RTNetMaskToPrefixIPv4(&pInfo->IPNetMask, &iPrefixIPv4); 1786 netIfLog(("netIfFillInfoWithAddresses: %RTnaipv4/%u\n", pInfo->IPAddress, iPrefixIPv4)); 1787 } 1788 if (fIPv6Found) 1789 { 1790 int iPrefixIPv6 = -1; 1791 RTNetMaskToPrefixIPv6(&pInfo->IPv6NetMask, &iPrefixIPv6); 1792 netIfLog(("netIfFillInfoWithAddresses: %RTnaipv6/%u\n", &pInfo->IPv6Address, iPrefixIPv6)); 1793 } 1786 1794 } 1787 1795
Note:
See TracChangeset
for help on using the changeset viewer.