Changeset 67633 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 27, 2017 10:34:35 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
r67566 r67633 515 515 #else 516 516 if (aIPV6NetworkMaskPrefixLength > 128) 517 return E_INVALIDARG; 518 519 int rc = S_OK; 520 if ( m.realIPV6Address != aIPV6Address 517 return mVirtualBox->setErrorBoth(E_INVALIDARG, VERR_INVALID_PARAMETER, 518 "Invalid IPv6 prefix length"); 519 520 int rc; 521 522 RTNETADDRIPV6 AddrOld, AddrNew; 523 char *pszZoneIgnored; 524 bool fAddrChanged; 525 526 rc = RTNetStrToIPv6Addr(aIPV6Address.c_str(), &AddrNew, &pszZoneIgnored); 527 if (RT_FAILURE(rc)) 528 { 529 return mVirtualBox->setErrorBoth(E_INVALIDARG, rc, "Invalid IPv6 address"); 530 } 531 532 rc = RTNetStrToIPv6Addr(com::Utf8Str(m.realIPV6Address).c_str(), &AddrOld, &pszZoneIgnored); 533 if (RT_SUCCESS(rc)) 534 { 535 fAddrChanged = (memcmp(&AddrNew, &AddrOld, sizeof(RTNETADDRIPV6)) == 0); 536 } 537 else 538 { 539 fAddrChanged = true; 540 } 541 542 if ( fAddrChanged 521 543 || m.realIPV6PrefixLength != aIPV6NetworkMaskPrefixLength) 522 544 {
Note:
See TracChangeset
for help on using the changeset viewer.