VirtualBox

Changeset 79823 in vbox


Ignore:
Timestamp:
Jul 16, 2019 8:14:56 PM (5 years ago)
Author:
vboxsync
Message:

Main/DHCPServer: It's okay to put the DHCP server IP in the dynamic range now, it's treated like a fixed allocation. bugref:9288

File:
1 edited

Legend:

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

    r79778 r79823  
    551551        return setError(E_INVALIDARG, tr("Invalid range upper address"), aUpperIP.c_str(), aNetworkMask.c_str());
    552552
    553     /* The range should be valid ... */
     553    /* The range should be valid. (It's okay to overlap the server IP.) */
    554554    if (LowerIP.u > UpperIP.u)
    555555        return setError(E_INVALIDARG, tr("Lower bound must be less or eqaul than the upper: %s vs %s"),
    556556                        aLowerIP.c_str(), aUpperIP.c_str());
    557 
    558     /* ... and shouldn't contain the server's address */
    559     if (LowerIP.u <= IPAddress.u && IPAddress.u <= UpperIP.u)
    560         return setError(E_INVALIDARG, tr("Server address within range bounds: %s in %s - %s"),
    561                         aIPAddress.c_str(), aLowerIP.c_str(), aUpperIP.c_str());
    562557
    563558    /*
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