Changeset 87618 in vbox for trunk/src/VBox/NetworkServices
- Timestamp:
- Feb 5, 2021 12:40:52 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142653
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r87617 r87618 386 386 { 387 387 RTNETADDRIPV4 addr; 388 rc = RTNetStrToIPv4Addr( com::Utf8Str(bstrSourceIp4).c_str(), &addr);388 rc = RTNetStrToIPv4Addr(strSourceIp4.c_str(), &addr); 389 389 if (RT_SUCCESS(rc)) 390 390 { … … 398 398 { 399 399 LogRel(("Failed to parse \"%s\" IPv4 source address specification\n", 400 com::Utf8Str(bstrSourceIp4).c_str()));400 strSourceIp4.c_str())); 401 401 } 402 402 } … … 413 413 RTNETADDRIPV6 addr; 414 414 char *pszZone = NULL; 415 rc = RTNetStrToIPv6Addr( com::Utf8Str(bstrSourceIp6).c_str(), &addr, &pszZone);415 rc = RTNetStrToIPv6Addr(strSourceIp6.c_str(), &addr, &pszZone); 416 416 if (RT_SUCCESS(rc)) 417 417 { … … 425 425 { 426 426 LogRel(("Failed to parse \"%s\" IPv6 source address specification\n", 427 com::Utf8Str(bstrSourceIp6).c_str()));427 strSourceIp6.c_str())); 428 428 } 429 429 } … … 1465 1465 AssertReturn(*pcszKey != '\0', E_FAIL); 1466 1466 1467 com::BstrFmt bstrKey("NAT/%s/%s", networkName.c_str(), pcszKey);1467 com::BstrFmt bstrKey("NAT/%s/%s", getNetworkName().c_str(), pcszKey); 1468 1468 com::Bstr bstrValue; 1469 1469 hrc = virtualbox->GetExtraData(bstrKey.raw(), bstrValue.asOutParam());
Note:
See TracChangeset
for help on using the changeset viewer.