suricata
flow-bindgen.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct Flow_ Flow
 

Functions

void SCFlowGetLastTimeAsParts (const Flow *flow, uint64_t *secs, uint64_t *usecs)
 Get flow last time as individual values. More...
 
uint32_t SCFlowGetFlags (const Flow *flow)
 Get flow flags. More...
 
uint16_t SCFlowGetSourcePort (const Flow *flow)
 Get flow source port. More...
 
uint16_t SCFlowGetDestinationPort (const Flow *flow)
 Get flow destination port. More...
 

Typedef Documentation

◆ Flow

typedef struct Flow_ Flow

Definition at line 1 of file flow-bindgen.h.

Function Documentation

◆ SCFlowGetDestinationPort()

uint16_t SCFlowGetDestinationPort ( const Flow flow)

Get flow destination port.

A function to get the flow dport useful when the caller only has an opaque pointer to the flow structure.

Definition at line 1217 of file flow.c.

References Flow_::dp.

◆ SCFlowGetFlags()

uint32_t SCFlowGetFlags ( const Flow flow)

Get flow flags.

A function to get the flow flags useful when the caller only has an opaque pointer to the flow structure.

Definition at line 1228 of file flow.c.

References Flow_::flags.

◆ SCFlowGetLastTimeAsParts()

void SCFlowGetLastTimeAsParts ( const Flow flow,
uint64_t *  secs,
uint64_t *  usecs 
)

Get flow last time as individual values.

Instead of returning a pointer to the timeval copy the timeval parts into output pointers to make it simpler to call from Rust over FFI using only basic data types.

Definition at line 1193 of file flow.c.

References Flow_::lastts, SCTIME_SECS, and SCTIME_USECS.

◆ SCFlowGetSourcePort()

uint16_t SCFlowGetSourcePort ( const Flow flow)

Get flow source port.

A function to get the flow sport useful when the caller only has an opaque pointer to the flow structure.

Definition at line 1205 of file flow.c.

References Flow_::sp.