suricata
LiveDevice_ Struct Reference

#include <util-device.h>

Collaboration diagram for LiveDevice_:

Public Member Functions

 SC_ATOMIC_DECLARE (uint64_t, pkts)
 
 SC_ATOMIC_DECLARE (uint64_t, drop)
 
 SC_ATOMIC_DECLARE (uint64_t, bypassed)
 
 SC_ATOMIC_DECLARE (uint64_t, invalid_checksums)
 
 TAILQ_ENTRY (LiveDevice_) next
 

Data Fields

char * dev
 
char dev_short [MAX_DEVNAME+1]
 
int mtu
 
bool tenant_id_set
 
uint16_t id
 
uint32_t tenant_id
 
uint32_t offload_orig
 
Storage storage []
 

Detailed Description

storage for live device names

Definition at line 50 of file util-device.h.

Member Function Documentation

◆ SC_ATOMIC_DECLARE() [1/4]

LiveDevice_::SC_ATOMIC_DECLARE ( uint64_t  ,
bypassed   
)

◆ SC_ATOMIC_DECLARE() [2/4]

LiveDevice_::SC_ATOMIC_DECLARE ( uint64_t  ,
drop   
)

◆ SC_ATOMIC_DECLARE() [3/4]

LiveDevice_::SC_ATOMIC_DECLARE ( uint64_t  ,
invalid_checksums   
)

◆ SC_ATOMIC_DECLARE() [4/4]

LiveDevice_::SC_ATOMIC_DECLARE ( uint64_t  ,
pkts   
)

◆ TAILQ_ENTRY()

LiveDevice_::TAILQ_ENTRY ( LiveDevice_  )

Field Documentation

◆ dev

char* LiveDevice_::dev

the device (e.g. "eth0")

Definition at line 51 of file util-device.h.

Referenced by DPDKCloseDevice(), DPDKFreeDevice(), GetIfaceMaxPacketSize(), LiveGetDevice(), LiveGetDeviceName(), and LiveRegisterDevice().

◆ dev_short

char LiveDevice_::dev_short[MAX_DEVNAME+1]

Definition at line 52 of file util-device.h.

Referenced by LiveGetShortName().

◆ id

uint16_t LiveDevice_::id

Definition at line 56 of file util-device.h.

◆ mtu

int LiveDevice_::mtu

Definition at line 53 of file util-device.h.

Referenced by GetIfaceMaxPacketSize().

◆ offload_orig

uint32_t LiveDevice_::offload_orig

original offload settings to restore @exit

Definition at line 65 of file util-device.h.

Referenced by DisableIfaceOffloading(), and RestoreIfaceOffloading().

◆ storage

Storage LiveDevice_::storage[]

storage handle as a flex array member

Definition at line 71 of file util-device.h.

Referenced by LiveDevAllocStorageById(), LiveDevFreeStorage(), LiveDevFreeStorageById(), LiveDevGetStorageById(), and LiveDevSetStorageById().

◆ tenant_id

uint32_t LiveDevice_::tenant_id

tenant id in multi-tenancy

Definition at line 64 of file util-device.h.

◆ tenant_id_set

bool LiveDevice_::tenant_id_set

Definition at line 54 of file util-device.h.


The documentation for this struct was generated from the following file: