VirtualBox

Changeset 39677 in vbox


Ignore:
Timestamp:
Dec 22, 2011 9:18:40 AM (13 years ago)
Author:
vboxsync
Message:

Main/Network: removed unnecessary defaults for IPAddress and NetworkMask attributes

File:
1 edited

Legend:

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

    r38695 r39677  
    221221    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    222222
    223     if (m.IPAddress == 0)
    224     {
    225         getDefaultIPv4Address(mInterfaceName).detachTo(aIPAddress);
    226         return S_OK;
    227     }
    228 
    229223    in_addr tmp;
    230224#if defined(RT_OS_WINDOWS)
     
    255249    AutoCaller autoCaller(this);
    256250    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    257 
    258     if (m.networkMask == 0)
    259     {
    260         Bstr(VBOXNET_IPV4MASK_DEFAULT).detachTo(aNetworkMask);
    261         return S_OK;
    262     }
    263251
    264252    in_addr tmp;
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