suricata
capture-hooks.h File Reference
#include "suricata-common.h"
Include dependency graph for capture-hooks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct Packet_ Packet
 
typedef void(* CaptureOnPacketWithAlertsHook) (const Packet *p)
 
typedef void(* CaptureOnPseudoPacketCreatedHook) (Packet *p)
 

Functions

void CaptureHooksSet (CaptureOnPacketWithAlertsHook OnAlerts, CaptureOnPseudoPacketCreatedHook OnPseudoCreated)
 
void CaptureHooksOnPacketWithAlerts (const Packet *p)
 
void CaptureHooksOnPseudoPacketCreated (Packet *p)
 

Detailed Description

Small hook interface for capture modules to react to events in the generic engine without creating circular dependencies.

Definition in file capture-hooks.h.

Typedef Documentation

◆ CaptureOnPacketWithAlertsHook

typedef void(* CaptureOnPacketWithAlertsHook) (const Packet *p)

Definition at line 32 of file capture-hooks.h.

◆ CaptureOnPseudoPacketCreatedHook

typedef void(* CaptureOnPseudoPacketCreatedHook) (Packet *p)

Definition at line 33 of file capture-hooks.h.

◆ Packet

typedef struct Packet_ Packet

Definition at line 1 of file capture-hooks.h.

Function Documentation

◆ CaptureHooksOnPacketWithAlerts()

void CaptureHooksOnPacketWithAlerts ( const Packet p)

Definition at line 53 of file capture-hooks.c.

◆ CaptureHooksOnPseudoPacketCreated()

void CaptureHooksOnPseudoPacketCreated ( Packet p)

Definition at line 60 of file capture-hooks.c.

◆ CaptureHooksSet()

void CaptureHooksSet ( CaptureOnPacketWithAlertsHook  OnAlerts,
CaptureOnPseudoPacketCreatedHook  OnPseudoCreated 
)

Definition at line 37 of file capture-hooks.c.

Referenced by PcapFileInstallCaptureHooks().

Here is the caller graph for this function: