VirtualBox

Changeset 48460 in vbox


Ignore:
Timestamp:
Sep 12, 2013 5:14:51 PM (11 years ago)
Author:
vboxsync
Message:

NATNetwork::COMGETTER(IPv6Enabled) & NATNetwork::COMSETTER(IPv6Enabled): copy'n'paste bug
s/AdvertiseDefaultIPv6Route/IPv6Enabled/

File:
1 edited

Legend:

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

    r48417 r48460  
    374374}
    375375
    376 STDMETHODIMP NATNetwork::COMGETTER(IPv6Enabled)(BOOL *aAdvertiseDefaultIPv6Route)
    377 {
    378     CheckComArgOutPointerValid(aAdvertiseDefaultIPv6Route);
    379 
    380     AutoCaller autoCaller(this);
    381     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    382 
    383     *aAdvertiseDefaultIPv6Route = m->fAdvertiseDefaultIPv6Route;
    384 
    385     return S_OK;
    386 }
    387 
    388 STDMETHODIMP NATNetwork::COMSETTER(IPv6Enabled)(BOOL aAdvertiseDefaultIPv6Route)
     376STDMETHODIMP NATNetwork::COMGETTER(IPv6Enabled)(BOOL *aIPv6Enabled)
     377{
     378    CheckComArgOutPointerValid(aIPv6Enabled);
     379
     380    AutoCaller autoCaller(this);
     381    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     382
     383    *aIPv6Enabled = m->fIPv6Enabled;
     384
     385    return S_OK;
     386}
     387
     388STDMETHODIMP NATNetwork::COMSETTER(IPv6Enabled)(BOOL aIPv6Enabled)
    389389{
    390390    AutoCaller autoCaller(this);
    391391    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    392392    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    393     m->fAdvertiseDefaultIPv6Route = aAdvertiseDefaultIPv6Route;
     393    m->fIPv6Enabled = aIPv6Enabled;
    394394
    395395    // save the global settings; for that we should hold only the VirtualBox lock
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