diff --git a/src/decode.h b/src/decode.h index bf1f34a834..b9cccd71ac 100644 --- a/src/decode.h +++ b/src/decode.h @@ -372,6 +372,7 @@ typedef struct Packet_ /* flow */ uint8_t flowflags; + /* coccinelle: Packet:flowflags:FLOW_PKT_ */ uint8_t pkt_src; diff --git a/src/detect.h b/src/detect.h index 57acb988d7..3fd89ee693 100644 --- a/src/detect.h +++ b/src/detect.h @@ -332,6 +332,7 @@ typedef struct IPOnlyCIDRItem_ { typedef struct SignatureHeader_ { union { struct { + /* coccinelle: SignatureHeader:flags:SIG_FLAG */ uint32_t flags; uint16_t alproto; uint16_t dsize_low; @@ -370,6 +371,7 @@ typedef struct SigMatch_ { typedef struct Signature_ { union { struct { + /* coccinelle: Signature:flags:SIG_FLAG */ uint32_t flags; uint16_t alproto; uint16_t dsize_low; @@ -449,6 +451,8 @@ typedef struct Signature_ { /* used to hold flags that are predominantly used during init */ uint32_t init_flags; + /* coccinelle: Signature:init_flags:SIG_FLAG_INIT_ */ + /** number of sigmatches in the match and pmatch list */ uint16_t sm_cnt; /* used at init to determine max dsize */ diff --git a/src/stream-tcp-private.h b/src/stream-tcp-private.h index dc60c742eb..992c16544d 100644 --- a/src/stream-tcp-private.h +++ b/src/stream-tcp-private.h @@ -57,11 +57,13 @@ typedef struct TcpSegment_ { uint32_t seq; struct TcpSegment_ *next; struct TcpSegment_ *prev; + /* coccinelle: TcpSegment:flags:SEGMENTTCP_FLAG */ uint8_t flags; } TcpSegment; typedef struct TcpStream_ { uint16_t flags; /**< Flag specific to the stream e.g. Timestamp */ + /* coccinelle: TcpStream:flags:STREAMTCP_STREAM_FLAG_ */ uint8_t wscale; /**< wscale setting in this direction */ uint8_t os_policy; /**< target based OS policy used for reassembly and handling packets*/ @@ -205,6 +207,7 @@ typedef struct TcpSession_ { PoolThreadReserved res; uint8_t state; uint8_t queue_len; /**< length of queue list below */ + /* coccinelle: TcpSession:flags:STREAMTCP_FLAG */ uint16_t flags; TcpStream server; TcpStream client;