Changeset 38101 in vbox
- Timestamp:
- Jul 21, 2011 2:16:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r38090 r38101 588 588 int fNATfailed = 0; 589 589 int rc; 590 PNATState pData = RTMemAllocZ(RT_ALIGN_Z(sizeof(NATState), sizeof(uint64_t))); 590 PNATState pData; 591 if (u32Netmask & 0x1f) 592 /* CTL is x.x.x.15, bootp passes up to 16 IPs (15..31) */ 593 return VERR_INVALID_PARAMETER; 594 pData = RTMemAllocZ(RT_ALIGN_Z(sizeof(NATState), sizeof(uint64_t))); 591 595 *ppData = pData; 592 596 if (!pData) 593 597 return VERR_NO_MEMORY; 594 if (u32Netmask & 0x1f)595 /* CTL is x.x.x.15, bootp passes up to 16 IPs (15..31) */596 return VERR_INVALID_PARAMETER;597 598 pData->fPassDomain = !fUseHostResolver ? fPassDomain : false; 598 599 pData->fUseHostResolver = fUseHostResolver; … … 623 624 624 625 rc = bootp_dhcp_init(pData); 625 if (rc != 0) 626 { 627 Log(("NAT: DHCP server initialization was failed\n")); 628 return VINF_NAT_DNS; 626 if (RT_FAILURE(rc)) 627 { 628 Log(("NAT: DHCP server initialization failed\n")); 629 RTMemFree(pData); 630 *ppData = NULL; 631 return rc; 629 632 } 630 633 debug_init();
Note:
See TracChangeset
for help on using the changeset viewer.