Changeset 48372 in vbox
- Timestamp:
- Sep 7, 2013 2:28:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r48365 r48372 842 842 AssertComRCReturn(hrc, VERR_INTERNAL_ERROR); 843 843 #endif 844 845 com::Bstr bstrSourceIp4Key = com::BstrFmt("NAT/%s/SourceIp4",m_Network.c_str()); 846 com::Bstr bstrSourceIpX; 847 RTNETADDRIPV4 addr; 848 hrc = virtualbox->GetExtraData(bstrSourceIp4Key.raw(), bstrSourceIpX.asOutParam()); 849 if (SUCCEEDED(hrc)) 850 { 851 int rc = RTNetStrToIPv4Addr(com::Utf8Str(bstrSourceIpX).c_str(), &addr); 852 if (RT_SUCCESS(rc)) 853 { 854 RT_ZERO(m_src4); 855 856 m_src4.sin_addr.s_addr = addr.u; 857 m_ProxyOptions.src4 = &m_src4; 858 859 bstrSourceIpX.setNull(); 860 } 861 } 862 844 863 if (!fDontLoadRulesOnStartup) 845 864 {
Note:
See TracChangeset
for help on using the changeset viewer.