VirtualBox

Changeset 68447 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 17, 2017 3:01:13 PM (7 years ago)
Author:
vboxsync
Message:

NAT: NATEngine::setHostIP - use setError to provide the error message.

File:
1 edited

Legend:

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

    r68444 r68447  
    410410        int rc = RTNetStrToIPv4Addr(aHostIP.c_str(), &addr);
    411411        if (RT_FAILURE(rc))
    412             return E_INVALIDARG;
     412            return setError(E_INVALIDARG, "Invalid IPv4 address \"%s\"", aHostIP.c_str());
    413413
    414414        /* is a unicast address */
    415415        if ((addr.u & RT_N2H_U32_C(0xe0000000)) == RT_N2H_U32_C(0xe0000000))
    416             return E_INVALIDARG;
     416            return setError(E_INVALIDARG, "Cannot bind to a multicast address %s", aHostIP.c_str());
    417417    }
    418418
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