suricata
|
#include "flow.h"
Go to the source code of this file.
Macros | |
#define | STREAM_START BIT_U8(0) |
#define | STREAM_EOF BIT_U8(1) |
#define | STREAM_TOSERVER BIT_U8(2) |
#define | STREAM_TOCLIENT BIT_U8(3) |
#define | STREAM_GAP BIT_U8(4) |
#define | STREAM_DEPTH BIT_U8(5) |
#define | STREAM_MIDSTREAM BIT_U8(6) |
#define | STREAM_FLUSH BIT_U8(7) |
Typedefs | |
typedef int(* | StreamSegmentCallback) (const Packet *, void *, const uint8_t *, uint32_t) |
Functions | |
int | StreamSegmentForEach (const Packet *p, uint8_t flag, StreamSegmentCallback CallbackFunc, void *data) |
Run callback for all segments. More... | |
Definition in file stream.h.
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.
Must be called under flow lock.
Definition at line 39 of file stream.c.
References Packet_::proto, SC_ERR_UNKNOWN_PROTOCOL, SCLogWarning, and StreamTcpSegmentForEach().