NATEngineImpl.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $Id$ */
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2009 Oracle Corporation
*
* 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.
*/
#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 */
/* Alias service */
};
bool isModified();
bool isReallyModified();
bool rollback();
void commit();
void uninit();
void FinalRelease();
/* TFTP attributes */
/* Alias 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, NATProtocol_T aProto, IN_BSTR aBindIp, USHORT aHostPort, IN_BSTR aGuestIP, USHORT aGuestPort);
bool m_fModified;
};
#endif