Changeset 87688 in vbox for trunk/src/VBox/NetworkServices
- Timestamp:
- Feb 10, 2021 3:28:46 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142730
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r87637 r87688 273 273 setMacAddress(mac); 274 274 275 RTNETADDRIPV4 address;276 address.u = RT_MAKE_U32_FROM_U8( 10, 0, 2, 2); // NB: big-endian277 setIpv4Address(address);278 279 address.u = RT_H2N_U32_C(0xffffff00);280 setIpv4Netmask(address);281 282 275 /* tell the base class about our command line options */ 283 276 for (PCRTGETOPTDEF pcOpt = &s_aGetOptDef[0]; pcOpt->iShort != 0; ++pcOpt) … … 577 570 AssertReturn(CmdLineMask4.u == 0 || CmdLineMask4.u == Mask4.u, 578 571 VERR_INVALID_PARAMETER); 572 573 /* 574 * Transitional: tell the base class just in case, though it's not 575 * used as far as I can tell. 576 */ 577 if (CmdLineAddr4.u == 0) 578 { 579 setIpv4Address(Addr4); 580 setIpv4Netmask(Mask4); 581 } 579 582 580 583 memcpy(&m_ProxyOptions.ipv4_addr, &Addr4, sizeof(ip_addr));
Note:
See TracChangeset
for help on using the changeset viewer.