netif.h revision 65d9eb0b2a96389c8512d1234c02aada7c131531
/** @file
* Main - Network Interfaces.
*/
/*
* Copyright (C) 2008 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 ___netif_h
#define ___netif_h
//#include <list>
#if 1
/**
* Encapsulation type.
*/
typedef enum NETIFTYPE
{
} NETIFTYPE;
/**
* Current state of the interface.
*/
typedef enum NETIFSTATUS
{
} NETIFSTATUS;
/**
* Host Network Interface Information.
*/
typedef struct NETIFINFO
{
char szShortName[50];
char szName[1];
} NETIFINFO;
/** Pointer to a network interface info. */
typedef NETIFINFO *PNETIFINFO;
/** Pointer to a const network interface info. */
typedef NETIFINFO const *PCNETIFINFO;
#endif
int NetIfEnableStaticIpConfigV6(HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);
int NetIfCreateHostOnlyNetworkInterface (VirtualBox *pVbox, IN_BSTR aName, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress);
int NetIfRemoveHostOnlyNetworkInterface (VirtualBox *pVbox, IN_GUID aId, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress);
{
"%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",
}
#endif