suricata
AF_XDP running mode

Files

file  runmode-af-xdp.c
 
file  source-af-xdp.c
 

Macros

#define PCAP_DONT_INCLUDE_PCAP_BPF_H   1
 
#define SC_PCAP_DONT_INCLUDE_PCAP_H   1
 

Functions

TmEcode NoAFXDPSupportExit (ThreadVars *tv, const void *initdata, void **data)
 this function prints an error message and exits. More...
 
void TmModuleReceiveAFXDPRegister (void)
 
void TmModuleDecodeAFXDPRegister (void)
 Registration Function for DecodeAFXDP. More...
 

Detailed Description

Macro Definition Documentation

◆ PCAP_DONT_INCLUDE_PCAP_BPF_H

#define PCAP_DONT_INCLUDE_PCAP_BPF_H   1

Definition at line 33 of file source-af-xdp.c.

◆ SC_PCAP_DONT_INCLUDE_PCAP_H

#define SC_PCAP_DONT_INCLUDE_PCAP_H   1

Definition at line 34 of file source-af-xdp.c.

Function Documentation

◆ NoAFXDPSupportExit()

TmEcode NoAFXDPSupportExit ( ThreadVars tv,
const void *  initdata,
void **  data 
)

this function prints an error message and exits.

Definition at line 106 of file source-af-xdp.c.

References ThreadVars_::name, SCLogError, and tv.

Referenced by TmModuleDecodeAFXDPRegister(), and TmModuleReceiveAFXDPRegister().

Here is the caller graph for this function:

◆ TmModuleDecodeAFXDPRegister()

void TmModuleDecodeAFXDPRegister ( void  )

Registration Function for DecodeAFXDP.

Definition at line 92 of file source-af-xdp.c.

References TmModule_::cap_flags, TmModule_::flags, TmModule_::Func, TmModule_::name, NoAFXDPSupportExit(), TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_DECODE_TM, TMM_DECODEAFXDP, and tmm_modules.

Referenced by RegisterAllModules().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TmModuleReceiveAFXDPRegister()

void TmModuleReceiveAFXDPRegister ( void  )

Definition at line 78 of file source-af-xdp.c.

References TmModule_::cap_flags, TmModule_::flags, TmModule_::Func, TmModule_::name, NoAFXDPSupportExit(), TmModule_::ThreadDeinit, TmModule_::ThreadExitPrintStats, TmModule_::ThreadInit, TM_FLAG_RECEIVE_TM, tmm_modules, and TMM_RECEIVEAFXDP.

Referenced by RegisterAllModules().

Here is the call graph for this function:
Here is the caller graph for this function: