VirtualBox

Changeset 48415 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 10, 2013 3:17:46 PM (11 years ago)
Author:
vboxsync
Message:

Main/NATNework: Assign to dhcplowerip not next to the dhcpserver but next available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp

    r48405 r48415  
    973973
    974974        /* XXX: adding more services should change the math here */
    975         RTNETADDRIPV4 dhcplowerip;
    976         dhcplowerip.u = RT_H2N_U32(dhcpserver.u + 1);
     975        RTNETADDRIPV4 dhcplowerip = network;
     976        uint32_t offDhcpLowerIp;
     977        findFirstAvailableOffset(&offDhcpLowerIp);
     978        dhcplowerip.u = RT_H2N_U32(dhcplowerip.u + offDhcpLowerIp);
     979
    977980        RTNETADDRIPV4 dhcpupperip;
    978981        dhcpupperip.u = RT_H2N_U32((network.u | ~netmask.u) - 1);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette