suricata
Collaboration diagram for AFP peers list:

Data Structures

struct  AFPPeersList_
 
struct  AFPPeer_
 

Typedefs

typedef struct AFPPeersList_ AFPPeersList
 

Functions

TmEcode AFPPeersListInit ()
 Init the global list of AFPPeer. More...
 
TmEcode AFPPeersListCheck ()
 Check that all AFPPeer got a peer. More...
 
void AFPPeersListClean ()
 Clean the global peers list. More...
 

Variables

AFPPeersList peerslist
 
typedef struct AFPPeer_ AFPPeer
 

Detailed Description

AF_PACKET has an IPS mode were interface are peered: packet from on interface are sent the peered interface and the other way. The AFPPeer list is maitaining the list of peers. Each AFPPeer is storing the needed information to be able to send packet on the interface. A element of the list must not be destroyed during the run of Suricata as it is used by Packet and other threads.

Typedef Documentation

typedef struct AFPPeer_ AFPPeer
typedef struct AFPPeersList_ AFPPeersList

Function Documentation

void AFPPeersListClean ( void  )

Clean the global peers list.

Definition at line 532 of file source-af-packet.c.

References next, TAILQ_FIRST, and TAILQ_REMOVE.

Referenced by GlobalsInitPreConfig().

Here is the caller graph for this function:

TmEcode AFPPeersListInit ( void  )

Init the global list of AFPPeer.

Definition at line 400 of file source-af-packet.c.

References SC_ATOMIC_INIT, SC_ATOMIC_SET, SCEnter, SCReturnInt, TAILQ_INIT, and TM_ECODE_OK.

Referenced by RunModeIdsAFPAutoFp(), RunModeIdsAFPSingle(), and RunModeIdsAFPWorkers().

Here is the caller graph for this function:

Variable Documentation

AFPPeersList peerslist

Definition at line 394 of file source-af-packet.c.