24#ifndef SURICATA_STREAM_H
25#define SURICATA_STREAM_H
30#define STREAM_FLAGS_FOR_PACKET(p) (PKT_IS_TOSERVER((p)) ? STREAM_TOSERVER : STREAM_TOCLIENT)
32#define STREAM_DUMP_TOCLIENT BIT_U8(1)
33#define STREAM_DUMP_TOSERVER BIT_U8(2)
34#define STREAM_DUMP_HEADERS BIT_U8(3)
int(* StreamSegmentCallback)(const Packet *, TcpSegment *, void *, const uint8_t *, uint32_t)
int StreamSegmentForSession(const Packet *p, uint8_t flag, StreamSegmentCallback CallbackFunc, void *data)
Run callback for all segments on both directions of the session.
int StreamSegmentForEach(const Packet *p, uint8_t flag, StreamSegmentCallback CallbackFunc, void *data)