From: Victor Julien Date: Fri, 11 Jun 2021 07:52:11 +0000 (+0200) Subject: stream: packet to stream flags macro X-Git-Tag: suricata-7.0.0-beta1~1590 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ecde6efb0a6eb3cb157d973221d41885ed77a08;p=thirdparty%2Fsuricata.git stream: packet to stream flags macro --- diff --git a/src/stream.h b/src/stream.h index 4f622047d6..3ba96ede35 100644 --- a/src/stream.h +++ b/src/stream.h @@ -35,6 +35,8 @@ #define STREAM_MIDSTREAM BIT_U8(6) #define STREAM_FLUSH BIT_U8(7) +#define STREAM_FLAGS_FOR_PACKET(p) PKT_IS_TOSERVER((p)) ? STREAM_TOSERVER : STREAM_TOCLIENT + typedef int (*StreamSegmentCallback)(const Packet *, void *, const uint8_t *, uint32_t); int StreamSegmentForEach(const Packet *p, uint8_t flag, StreamSegmentCallback CallbackFunc,