Bitdefender Hypervisor Memory Introspection
intronet.c File Reference
#include "intronet.h"
#include "guests.h"

Go to the source code of this file.

Functions

DWORD IntNetAddrToStr (const INTRO_NET_AF Family, const INTRONET_ADDRESS *Address, CHAR *String)
 Converts an IP address to a string. More...
 
static INTRO_NET_STATE IntNetConvertStateLix (const LIX_SOCK_STATE State)
 Converts a Linux specific connection state to an Introcore connection state. More...
 
static INTRO_NET_STATE IntNetConvertStateWin (const WIN_SOCK_STATE State)
 Converts a Windows specific connection state to an Introcore connection state. More...
 
INTRO_NET_STATE IntNetConvertState (const DWORD State)
 Converts a guest connection state to an Introcore connection state. More...
 

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 IntLixNetSendTaskConnections(), 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 168 of file intronet.c.

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

◆ IntNetConvertStateLix()

static INTRO_NET_STATE IntNetConvertStateLix ( const LIX_SOCK_STATE  State)
static

Converts a Linux specific connection state to an Introcore connection state.

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

Definition at line 78 of file intronet.c.

Referenced by IntNetConvertState().

◆ IntNetConvertStateWin()

static INTRO_NET_STATE IntNetConvertStateWin ( const WIN_SOCK_STATE  State)
static

Converts a Windows specific connection state to an Introcore connection state.

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

Definition at line 123 of file intronet.c.

Referenced by IntNetConvertState().