detect/frame: set frame flag during init

Allows for quickly checking if sig operates on frames during parsing.
pull/15127/head
Victor Julien 2 years ago
parent cd9993c568
commit dc814aa595

@ -144,6 +144,7 @@ static int DetectFrameSetup(DetectEngineCtx *de_ctx, Signature *s, const char *s
return -1;
FrameConfigEnable(keyword_alproto, frame_type);
s->init_data->init_flags |= SIG_FLAG_INIT_FRAME;
return 0;
}

@ -292,6 +292,7 @@ typedef struct DetectPort_ {
#define SIG_FLAG_INIT_BIDIREC BIT_U32(3) /**< signature has bidirectional operator */
#define SIG_FLAG_INIT_FIRST_IPPROTO_SEEN \
BIT_U32(4) /** < signature has seen the first ip_proto keyword */
#define SIG_FLAG_INIT_FRAME BIT_U32(5) /**< signature uses frames */
#define SIG_FLAG_INIT_STATE_MATCH BIT_U32(6) /**< signature has matches that require stateful inspection */
#define SIG_FLAG_INIT_NEED_FLUSH BIT_U32(7)
#define SIG_FLAG_INIT_PRIO_EXPLICIT \

Loading…
Cancel
Save