stream.h File Reference
#include "flow.h"
Include dependency graph for stream.h:

Go to the source code of this file.


#define STREAM_START   BIT_U8(0)
#define STREAM_EOF   BIT_U8(1)
#define STREAM_GAP   BIT_U8(4)
#define STREAM_DEPTH   BIT_U8(5)
#define STREAM_FLUSH   BIT_U8(7)


typedef int(* StreamSegmentCallback) (const Packet *, void *, const uint8_t *, uint32_t)


int StreamSegmentForEach (const Packet *p, uint8_t flag, StreamSegmentCallback CallbackFunc, void *data)
 Run callback for all segments. More...

Detailed Description

Victor Julien

Definition in file stream.h.

Macro Definition Documentation


#define STREAM_DEPTH   BIT_U8(5)

depth reached

Definition at line 35 of file stream.h.


#define STREAM_EOF   BIT_U8(1)

Definition at line 31 of file stream.h.


#define STREAM_FLUSH   BIT_U8(7)

Definition at line 37 of file stream.h.


#define STREAM_GAP   BIT_U8(4)

data gap encountered

Definition at line 34 of file stream.h.



Definition at line 36 of file stream.h.


#define STREAM_START   BIT_U8(0)

Definition at line 30 of file stream.h.



Definition at line 33 of file stream.h.



Definition at line 32 of file stream.h.

Typedef Documentation

◆ StreamSegmentCallback

typedef int(* StreamSegmentCallback) (const Packet *, void *, const uint8_t *, uint32_t)

Definition at line 38 of file stream.h.

Function Documentation

◆ StreamSegmentForEach()

int StreamSegmentForEach ( const Packet p,
uint8_t  flag,
StreamSegmentCallback  CallbackFunc,
void *  data 

Run callback for all segments.

Must be called under flow lock.

-1 in case of error, the number of segment in case of success

Definition at line 39 of file stream.c.

References Packet_::proto, SC_ERR_UNKNOWN_PROTOCOL, SCLogWarning, and StreamTcpSegmentForEach().

Here is the call graph for this function: