NATEngineImpl.h revision a1bdb5996ee1491e76b27493ccb0730a0416accb
/* $Id$ */
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#ifndef ____H_NATDRIVER
#define ____H_NATDRIVER
#include "VirtualBoxBase.h"
#include <VBox/settings.h>
{
struct NAT;
}
{
struct Data
{
mSockRcv(0),
mSockSnd(0),
mTcpRcv(0),
mTcpSnd(0),
/* TFTP service */
/* DNS service */
};
bool isModified();
bool isReallyModified();
bool rollback();
void commit();
void uninit();
void FinalRelease();
/* TFTP attributes */
/* DNS attributes */
STDMETHOD(SetNetworkSettings)(ULONG aMtu, ULONG aSockSnd, ULONG aSockRcv, ULONG aTcpWndSnd, ULONG aTcpWndRcv);
STDMETHOD(GetNetworkSettings)(ULONG *aMtu, ULONG *aSockSnd, ULONG *aSockRcv, ULONG *aTcpWndSnd, ULONG *aTcpWndRcv);
STDMETHOD(AddRedirect)(IN_BSTR aName, uint32_t aProto, IN_BSTR aBindIp, uint16_t aHostPort, IN_BSTR aGuestIP, uint16_t aGuestPort);
bool m_fModified;
};
#endif