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

Go to the source code of this file.

Typedefs

typedef void(* PFUNC_IterateConnectionsCallback) (INTRONET_ENDPOINT *Endpoint)
 

Functions

INTSTATUS IntLixNetIterateTaskConnections (LIX_TASK_OBJECT *Task, PFUNC_IterateConnectionsCallback Callback)
 Iterates all TCP/IP connections of a process and supplies them to callback. More...
 
INTSTATUS IntLixNetSendTaskConnections (LIX_TASK_OBJECT *Task)
 Logs and sends to the integrator all connections opened by a Linux proces.. More...
 
INTSTATUS IntLixNetSendGuestConnections (void)
 Sends all active in-guest TCP/IP connections as events to the integrator. More...
 

Typedef Documentation

◆ PFUNC_IterateConnectionsCallback

typedef void(* PFUNC_IterateConnectionsCallback) (INTRONET_ENDPOINT *Endpoint)

Definition at line 13 of file lixnet.h.

Function Documentation

◆ IntLixNetIterateTaskConnections()

INTSTATUS IntLixNetIterateTaskConnections ( LIX_TASK_OBJECT Task,
PFUNC_IterateConnectionsCallback  Callback 
)

Iterates all TCP/IP connections of a process and supplies them to callback.

This function will iterate all file descriptors for the given process and for those that refer to a socket will attempt to extract the connection details if the protocol used is TCP IPv4 or IPv6.

Parameters
[in]TaskThe Linux process.
[in]CallbackThe callback that will be called for each connection.
Returns
INT_STATUS_SUCCESS On success.
INT_STATUS_NOT_NEEDED_HINT If the connection events are not enabled.
INT_STATUS_INVALID_PARAMETER_1 If the Task parameter does not point to a valid LIX_TASK_OBJECT.
INT_STATUS_NOT_SUPPORTED If the current OS type is not Linux.

Definition at line 273 of file lixnet.c.

Referenced by IntLixNetSendTaskConnections().

◆ IntLixNetSendGuestConnections()

INTSTATUS IntLixNetSendGuestConnections ( void  )

Sends all active in-guest TCP/IP connections as events to the integrator.

This function will iterate all processes running inside the guest and send all their active TCP/IP connections.

Returns
INT_STATUS_SUCCESS On success.
INT_STATUS_NOT_NEEDED_HINT If connection events are not enabled.

Definition at line 435 of file lixnet.c.

◆ IntLixNetSendTaskConnections()

INTSTATUS IntLixNetSendTaskConnections ( LIX_TASK_OBJECT Task)

Logs and sends to the integrator all connections opened by a Linux proces..

Parameters
[in]TaskThe Linux process.
Returns
INT_STATUS_SUCCESS On success.
INT_STATUS_INVALID_PARAMETER_1 If an invalid process is supplied

Definition at line 413 of file lixnet.c.

Referenced by IntLixNetSendGuestConnections(), and IntLixVmaHandlePageExecution().