VirtualBox

Ignore:
Timestamp:
Nov 8, 2010 10:16:25 AM (14 years ago)
Author:
vboxsync
Message:

Main,NAT: Managing port-forwarding at runtime. (xTracker/#4835).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SessionImpl.cpp

    r33540 r33825  
    524524
    525525    return mConsole->onNetworkAdapterChange(networkAdapter, changeAdapter);
     526}
     527
     528STDMETHODIMP Session::OnNATRedirectRuleChange(INetworkAdapter *networkAdapter, BOOL aNatRuleRemove, IN_BSTR aRuleName,
     529                                 NATProtocol_T aProto, IN_BSTR aHostIp, LONG aHostPort, IN_BSTR aGuestIp, LONG aGuestPort)
     530{
     531    LogFlowThisFunc(("\n"));
     532
     533    AutoCaller autoCaller(this);
     534    AssertComRCReturn(autoCaller.rc(), autoCaller.rc());
     535
     536    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     537    AssertReturn(mState == SessionState_Locked, VBOX_E_INVALID_VM_STATE);
     538    AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE);
     539
     540    return mConsole->onNATRedirectRuleChange(networkAdapter, aNatRuleRemove, aRuleName, aProto, aHostIp, aHostPort, aGuestIp, aGuestPort);
    526541}
    527542
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