Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

intnet.h File Reference


Detailed Description

INTNET - Internal Networking. (DEV,++)

Definition in file intnet.h.

#include <VBox/types.h>
#include <VBox/stam.h>
#include <VBox/sup.h>
#include <iprt/assert.h>
#include <iprt/asm.h>

Go to the source code of this file.

Classes

struct  INTNETBUF
struct  INTNETHDR
struct  INTNETIFCLOSEREQ
struct  INTNETIFGETBUFFERPTRSREQ
struct  INTNETIFSENDREQ
struct  INTNETIFSETACTIVEREQ
struct  INTNETIFSETMACADDRESSREQ
struct  INTNETIFSETPROMISCUOUSMODEREQ
struct  INTNETIFWAITREQ
struct  INTNETOPENREQ
struct  INTNETRINGBUF
struct  INTNETSEG
struct  INTNETSG
struct  INTNETTRUNKFACTORY
struct  INTNETTRUNKIFPORT
struct  INTNETTRUNKSWPORT

Frame types (INTNETHDR::u16Type).

#define INTNETHDR_TYPE_FRAME   0x2442
#define INTNETHDR_TYPE_GSO   0x4664
#define INTNETHDR_TYPE_PADDING   0x3553
 AssertCompileSize (PDMNETWORKGSO, 8)

Defines

#define INTNET_HANDLE_INDEX_MASK   0xffff
#define INTNET_HANDLE_INVALID   (0)
#define INTNET_HANDLE_MAGIC   0x88880000
#define INTNET_HANDLE_MAX   0xffff
#define INTNET_MAX_NETWORK_NAME   128
#define INTNET_MAX_TRUNK_NAME   64
#define INTNETBUF_ASSERT_SANITY(pBuf)
#define INTNETBUF_MAGIC   UINT32_C(0x19110919)
#define INTNETHDR_ALIGNMENT   sizeof(INTNETHDR)
#define INTNETHDR_ASSERT_SANITY(pHdr, pRingBuf)
#define INTNETRINGBUF_ALIGNMENT   sizeof(INTNETHDR)
#define INTNETRINGBUF_ASSERT_SANITY(pRingBuf)
#define INTNETTRUNKFACTORY_UUID_STR   "1849823d-33ed-4f23-a32f-ef7203ee2b9f"
#define INTNETTRUNKIFPORT_VERSION   UINT32_C(0xA2CDe001)
#define INTNETTRUNKSWPORT_VERSION   UINT32_C(0xA2CDf001)
IntNetR0Open flags.
#define INTNET_OPEN_FLAGS_COMPATIBILITY_XOR_MASK   (RT_BIT_32(0) | RT_BIT_32(1) | RT_BIT_32(2) | RT_BIT_32(4) | RT_BIT_32(6))
#define INTNET_OPEN_FLAGS_IGNORE_PROMISC   RT_BIT_32(2)
#define INTNET_OPEN_FLAGS_IGNORE_PROMISC_TRUNK_HOST   RT_BIT_32(6)
#define INTNET_OPEN_FLAGS_IGNORE_PROMISC_TRUNK_WIRE   RT_BIT_32(4)
#define INTNET_OPEN_FLAGS_MASK   UINT32_C(0x000000ff)
#define INTNET_OPEN_FLAGS_PUBLIC   RT_BIT_32(1)
#define INTNET_OPEN_FLAGS_QUIETLY_IGNORE_PROMISC   RT_BIT_32(3)
#define INTNET_OPEN_FLAGS_QUIETLY_IGNORE_PROMISC_TRUNK_HOST   RT_BIT_32(7)
#define INTNET_OPEN_FLAGS_QUIETLY_IGNORE_PROMISC_TRUNK_WIRE   RT_BIT_32(5)
#define INTNET_OPEN_FLAGS_SECURITY_OR_MASK   (RT_BIT_32(3) | RT_BIT_32(5) | RT_BIT_32(7))
#define INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE   RT_BIT_32(0)
INTNETSG::fFlags definitions.
#define INTNETSG_FLAGS_ARP_IPV4   RT_BIT_32(3)
#define INTNETSG_FLAGS_FREE   RT_BIT_32(1)
#define INTNETSG_FLAGS_PKT_CP_IN_TMP   RT_BIT_32(4)
#define INTNETSG_FLAGS_TEMP   RT_BIT_32(2)
Direction (frame source or destination)
#define INTNETTRUNKDIR_HOST   RT_BIT_32(1)
#define INTNETTRUNKDIR_VALID_MASK   UINT32_C(3)
#define INTNETTRUNKDIR_WIRE   RT_BIT_32(0)
INTNETTRUNKFACTORY::pfnCreateAndConnect flags.
#define INTNETTRUNKFACTORY_FLAG_NO_PROMISC   RT_BIT_32(0)

Typedefs

typedef uint32_t INTNETIFHANDLE
typedef INTNETBUF const * PCINTNETBUF
typedef INTNETHDR const * PCINTNETHDR
typedef INTNETSEG const * PCINTNETSEG
typedef INTNETSG const * PCINTNETSG
typedef INTNETBUFPINTNETBUF
typedef INTNETHDRPINTNETHDR
typedef INTNETIFCLOSEREQPINTNETIFCLOSEREQ
typedef INTNETIFGETBUFFERPTRSREQPINTNETIFGETBUFFERPTRSREQ
typedef INTNETIFHANDLEPINTNETIFHANDLE
typedef INTNETIFSENDREQPINTNETIFSENDREQ
typedef INTNETIFSETACTIVEREQPINTNETIFSETACTIVEREQ
typedef INTNETIFSETMACADDRESSREQPINTNETIFSETMACADDRESSREQ
typedef
INTNETIFSETPROMISCUOUSMODEREQ
PINTNETIFSETPROMISCUOUSMODEREQ
typedef INTNETIFWAITREQPINTNETIFWAITREQ
typedef INTNETOPENREQPINTNETOPENREQ
typedef INTNETRINGBUFPINTNETRINGBUF
typedef INTNETSEGPINTNETSEG
typedef INTNETSGPINTNETSG
typedef INTNETTRUNKFACTORYPINTNETTRUNKFACTORY
typedef struct INTNETTRUNKIFPORTPINTNETTRUNKIFPORT
typedef struct INTNETTRUNKSWPORTPINTNETTRUNKSWPORT

Enumerations

enum  INTNETSWDECISION {
  INTNETSWDECISION_INVALID = 0, INTNETSWDECISION_BROADCAST, INTNETSWDECISION_INTNET, INTNETSWDECISION_TRUNK,
  INTNETSWDECISION_BAD_CONTEXT, INTNETSWDECISION_DROP, INTNETSWDECISION_32BIT_HACK = 0x7fffffff
}
enum  INTNETTRUNKIFSTATE {
  INTNETTRUNKIFSTATE_INVALID = 0, INTNETTRUNKIFSTATE_INACTIVE, INTNETTRUNKIFSTATE_ACTIVE, INTNETTRUNKIFSTATE_DISCONNECTING,
  INTNETTRUNKIFSTATE_END, INTNETTRUNKIFSTATE_32BIT_HACK = 0x7fffffff
}
enum  INTNETTRUNKTYPE {
  kIntNetTrunkType_Invalid = 0, kIntNetTrunkType_None, kIntNetTrunkType_WhateverNone, kIntNetTrunkType_NetFlt,
  kIntNetTrunkType_NetAdp, kIntNetTrunkType_SrvNat, kIntNetTrunkType_End, kIntNetTrunkType_32bitHack = 0x7fffffff
}

Functions

 AssertCompile (INTNETHDR_ALIGNMENT<=INTNETRINGBUF_ALIGNMENT)
 AssertCompile (sizeof(INTNETHDR)==INTNETHDR_ALIGNMENT)
 AssertCompileMemberOffset (INTNETBUF, Send, 64)
 AssertCompileMemberOffset (INTNETBUF, Recv, 16)
 AssertCompileSize (INTNETHDR, 8)
 AssertCompileSize (INTNETBUF, 160)
 AssertCompileSize (INTNETRINGBUF, 48)
 AssertCompileSizeAlignment (INTNETSG, 8)
 AssertCompileSizeAlignment (INTNETBUF, sizeof(INTNETHDR))
 INTNETR0DECL (int) IntNetR0OpenReq(PSUPDRVSESSION pSession

Variables

PINTNETOPENREQ pReq


Generated by  Doxygen 1.6.0   Back to index