Changeset 34545 in vbox for trunk/src/VBox
- Timestamp:
- Dec 1, 2010 8:52:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/win/NetIf-win.cpp
r32727 r34545 132 132 if (!fIPFound) 133 133 { 134 fIPFound = true; 135 ASMBitSetRange(&pInfo->IPNetMask, 0, pPrefix->PrefixLength); 134 if (pPrefix->pPrefixLength <= sizeof(pInfo->IPNetMask) * 8) 135 { 136 fIPFound = true; 137 ASMBitSetRange(&pInfo->IPNetMask, 0, pPrefix->PrefixLength); 138 } 139 else 140 Log(("collectNetIfInfo: Unexpected IPv4 prefix length of %d\n", 141 pPrefix->pPrefixLength)); 136 142 } 137 143 break; … … 139 145 if (!fIPv6Found) 140 146 { 141 fIPv6Found = true; 142 ASMBitSetRange(&pInfo->IPv6NetMask, 0, pPrefix->PrefixLength); 147 if (pPrefix->PrefixLength <= sizeof(pInfo->IPv6NetMask) * 8) 148 { 149 fIPv6Found = true; 150 ASMBitSetRange(&pInfo->IPv6NetMask, 0, pPrefix->PrefixLength); 151 } 152 else 153 Log(("collectNetIfInfo: Unexpected IPv6 prefix length of %d\n", 154 pPrefix->PrefixLength)); 143 155 } 144 156 break;
Note:
See TracChangeset
for help on using the changeset viewer.