/** @file
* Main - Network Interfaces.
*/
/*
* Copyright (C) 2008-2012 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 ___netif_h
#define ___netif_h
/** @todo r=bird: The inlined code below that drags in asm.h here. I doubt
* speed is very important here, so move it into a .cpp file, please. */
#ifndef RT_OS_WINDOWS
# include <stdio.h>
#endif /* !RT_OS_WINDOWS */
#if 1
/**
* Encapsulation type.
*/
typedef enum NETIFTYPE
{
} NETIFTYPE;
/**
* Current state of the interface.
*/
typedef enum NETIFSTATUS
{
} NETIFSTATUS;
/**
* Host Network Interface Information.
*/
typedef struct NETIFINFO
{
} NETIFINFO;
/** Pointer to a network interface info. */
/** Pointer to a const network interface info. */
#endif
int NetIfEnableStaticIpConfig(VirtualBox *pVBox, HostNetworkInterface * pIf, ULONG aOldIp, ULONG aNewIp, ULONG aMask);
int NetIfEnableStaticIpConfigV6(VirtualBox *pVBox, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);
int NetIfCreateHostOnlyNetworkInterface (VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress, const char *pcszName = NULL);
{
"%02x%02x:%02x%02x:%02x%02x:%02x%02x:"
"%02x%02x:%02x%02x:%02x%02x:%02x%02x",
}
{
}
{
if (cPrefix > 128)
return VERR_INVALID_PARAMETER;
if (!aAddrPtr)
return VERR_INVALID_PARAMETER;
return VINF_SUCCESS;
}
{
"%02x:%02x:%02x:%02x:%02x:%02x",
}
{
/* Get the index from the name */
int iInstance = 0;
#if defined(RT_OS_WINDOWS)
#else
#endif
}
#endif /* !___netif_h */
/* vi: set tabstop=4 shiftwidth=4 expandtab: */