stream.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "threads.h"
#include "stream.h"
#include "util-pool.h"
#include "util-debug.h"
#include "stream-tcp.h"
#include "flow-util.h"
Include dependency graph for stream.c:

Go to the source code of this file.


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.c.

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: