Bitdefender Hypervisor Memory Introspection
intronet.h File Reference
#include "lixprocess.h"
#include "winprocess.h"

Go to the source code of this file.

Data Structures

union  _INTRONET_ADDRESS
 An IP address. More...
 
struct  _INTRONET_ENDPOINT
 An endpoint. More...
 

Macros

#define INTRONET_MIN_BUFFER_SIZE   (sizeof("[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]"))
 The minimum buffer size needed for the textual representation of an IP address. More...
 

Typedefs

typedef union _INTRONET_ADDRESS INTRONET_ADDRESS
 An IP address. More...
 
typedef WORD INTRONET_PORT
 
typedef struct _INTRONET_ENDPOINT INTRONET_ENDPOINT
 An endpoint. More...
 

Functions

const char * IntNetStateToString (INTRO_NET_STATE State)
 Converts a connection state to a string. More...
 
INTRO_NET_STATE IntNetConvertState (const DWORD State)
 Converts a guest connection state to an Introcore connection state. More...
 
DWORD IntNetAddrToStr (const INTRO_NET_AF Family, const INTRONET_ADDRESS *Address, CHAR *String)
 Converts an IP address to a string. More...
 

Macro Definition Documentation

◆ INTRONET_MIN_BUFFER_SIZE

#define INTRONET_MIN_BUFFER_SIZE   (sizeof("[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]"))

The minimum buffer size needed for the textual representation of an IP address.

Definition at line 12 of file intronet.h.

Referenced by IntLixNetProcessConnection(), IntNetAddrToStr(), IntNetStateToString(), and IntWinNetDumpConnection().

Typedef Documentation

◆ INTRONET_ADDRESS

An IP address.

◆ INTRONET_ENDPOINT

An endpoint.

◆ INTRONET_PORT

Definition at line 22 of file intronet.h.

Function Documentation

◆ IntNetAddrToStr()

DWORD IntNetAddrToStr ( const INTRO_NET_AF  Family,
const INTRONET_ADDRESS Address,
CHAR String 
)

Converts an IP address to a string.

Parameters
[in]FamilyThe type of address.
[in]AddressPointer to an address.
[in]StringPointer to a buffer that, on success, will contain a NULL-terminated string that represents the provided address. Must be at least INTRONET_MIN_BUFFER_SIZE long.
Returns
The number of characters written to the buffer, not including the NULL terminator; or 0 in case of error.

Definition at line 11 of file intronet.c.

Referenced by IntLixNetProcessConnection(), IntNetStateToString(), and IntWinNetDumpConnection().

◆ IntNetConvertState()

INTRO_NET_STATE IntNetConvertState ( const DWORD  State)

Converts a guest connection state to an Introcore connection state.

Parameters
[in]StateConnection state to be converted.
Returns
The equivalent Introcore connection state; or introNetStateUnknown if the guest connection state is not known.

Definition at line 210 of file intronet.c.

Referenced by IntLixNetGetConnectionFromSocket(), IntNetStateToString(), and IntWinNetGetPortsAndState().

◆ IntNetStateToString()

const char* IntNetStateToString ( INTRO_NET_STATE  State)

Converts a connection state to a string.

Definition at line 69 of file intronet.h.

Referenced by IntLixNetProcessConnection(), and IntWinNetDumpConnection().