suricata
|
Go to the source code of this file.
Typedefs | |
typedef void(* | SCFlowInitCallbackFn) (ThreadVars *tv, Flow *f, const Packet *p, void *user) |
Function type for flow initialization callbacks. More... | |
typedef void(* | SCFlowUpdateCallbackFn) (ThreadVars *tv, Flow *f, Packet *p, void *user) |
Function type for flow update callbacks. More... | |
typedef void(* | SCFlowFinishCallbackFn) (ThreadVars *tv, Flow *f, void *user) |
Function type for flow finish callbacks. More... | |
Functions | |
bool | SCFlowRegisterInitCallback (SCFlowInitCallbackFn fn, void *user) |
Register a flow init callback. More... | |
void | SCFlowRunInitCallbacks (ThreadVars *tv, Flow *f, const Packet *p) |
bool | SCFlowRegisterUpdateCallback (SCFlowUpdateCallbackFn fn, void *user) |
Register a flow update callback. More... | |
void | SCFlowRunUpdateCallbacks (ThreadVars *tv, Flow *f, Packet *p) |
bool | SCFlowRegisterFinishCallback (SCFlowFinishCallbackFn fn, void *user) |
Register a flow init callback. More... | |
void | SCFlowRunFinishCallbacks (ThreadVars *tv, Flow *f) |
typedef void(* SCFlowFinishCallbackFn) (ThreadVars *tv, Flow *f, void *user) |
Function type for flow finish callbacks.
Once registered with SCFlowRegisterFinshCallback, this function will be called when Suricata is done with a flow.
tv | The ThreadVars data structure for the thread finishing the flow. |
f | The flow being finshed. |
user | The user data provided during callback registration. |
Definition at line 100 of file flow-callbacks.h.
typedef void(* SCFlowInitCallbackFn) (ThreadVars *tv, Flow *f, const Packet *p, void *user) |
Function type for flow initialization callbacks.
Once registered with SCFlowRegisterInitCallback, this function will be called every time a flow is initialized, or in other words, every time Suricata picks up a flow.
tv | The ThreadVars data structure for the thread creating the flow. |
f | The newly initialized flow. |
p | The packet related to creating the new flow. |
user | The user data provided during callback registration. |
Definition at line 36 of file flow-callbacks.h.
typedef void(* SCFlowUpdateCallbackFn) (ThreadVars *tv, Flow *f, Packet *p, void *user) |
Function type for flow update callbacks.
Once registered with SCFlowRegisterUpdateCallback, this function will be called every time a flow is updated by a packet (basically everytime a packet is seen on a flow).
tv | The ThreadVars data structure for the thread updating the flow. |
f | The flow being updated. |
p | The packet responsible for the flow update. |
user | The user data provided during callback registration. |
Definition at line 69 of file flow-callbacks.h.
bool SCFlowRegisterFinishCallback | ( | SCFlowFinishCallbackFn | fn, |
void * | user | ||
) |
Register a flow init callback.
Register a user provided function to be called every time a flow is finished.
fn | Pointer to function to be called |
user | Additional user data to be passed to callback |
Definition at line 102 of file flow-callbacks.c.
References FlowFinishCallback_::Callback, SCCalloc, and FlowFinishCallback_::user.
bool SCFlowRegisterInitCallback | ( | SCFlowInitCallbackFn | fn, |
void * | user | ||
) |
Register a flow init callback.
Register a user provided function to be called every time a flow is initialized for use.
fn | Pointer to function to be called |
user | Additional user data to be passed to callback |
Definition at line 44 of file flow-callbacks.c.
References FlowInitCallback_::Callback, SCCalloc, FlowInitCallback_::user, and FlowFinishCallback_::user.
bool SCFlowRegisterUpdateCallback | ( | SCFlowUpdateCallbackFn | fn, |
void * | user | ||
) |
Register a flow update callback.
Register a user provided function to be called everytime a flow is updated.
fn | Pointer to function to be called |
user | Additional user data to be passed to callback |
Definition at line 73 of file flow-callbacks.c.
References FlowUpdateCallback_::Callback, SCCalloc, FlowUpdateCallback_::user, and FlowFinishCallback_::user.
void SCFlowRunFinishCallbacks | ( | ThreadVars * | tv, |
Flow * | f | ||
) |
Definition at line 122 of file flow-callbacks.c.
void SCFlowRunInitCallbacks | ( | ThreadVars * | tv, |
Flow * | f, | ||
const Packet * | p | ||
) |
Definition at line 64 of file flow-callbacks.c.
void SCFlowRunUpdateCallbacks | ( | ThreadVars * | tv, |
Flow * | f, | ||
Packet * | p | ||
) |
Definition at line 93 of file flow-callbacks.c.