diff --git a/src/detect-flow.c b/src/detect-flow.c index 4e779fd4b013..bc95c3376e31 100644 --- a/src/detect-flow.c +++ b/src/detect-flow.c @@ -392,13 +392,15 @@ int DetectFlowSetup (DetectEngineCtx *de_ctx, Signature *s, const char *flowstr) /* set the signature direction flags */ if (fd->flags & DETECT_FLOW_FLAG_TOSERVER) { if (s->init_data->init_flags & SIG_FLAG_INIT_BOTHDIR) { - SCLogError("rule %u means to use both directions, cannot specify a flow direction", s->id); + SCLogError( + "rule %u means to use both directions, cannot specify a flow direction", s->id); return -1; } s->flags |= SIG_FLAG_TOSERVER; } else if (fd->flags & DETECT_FLOW_FLAG_TOCLIENT) { if (s->init_data->init_flags & SIG_FLAG_INIT_BOTHDIR) { - SCLogError("rule %u means to use both directions, cannot specify a flow direction", s->id); + SCLogError( + "rule %u means to use both directions, cannot specify a flow direction", s->id); return -1; } s->flags |= SIG_FLAG_TOCLIENT; diff --git a/src/detect-parse.c b/src/detect-parse.c index 53113fad539d..56dcf9c0b395 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -2038,7 +2038,9 @@ static int SigValidate(DetectEngineCtx *de_ctx, Signature *s) SCReturnInt(0); } if (dir_amb) { - SCLogError("rule %u means to use both directions, cannot have keywords ambiguous about directions", s->id); + SCLogError("rule %u means to use both directions, cannot have keywords ambiguous about " + "directions", + s->id); SCReturnInt(0); } } diff --git a/src/detect.h b/src/detect.h index 87656da705f5..c5eb8c67b1f1 100644 --- a/src/detect.h +++ b/src/detect.h @@ -284,7 +284,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_BOTHDIR BIT_U32(5) /**< signature needs both directions to match */ +#define SIG_FLAG_INIT_BOTHDIR BIT_U32(5) /**< signature needs both directions to match */ #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 \