detect: spelling: SIG_FLAG_INIT_PRIO_EXPLICIT

pull/8828/head
Victor Julien 2 years ago
parent 0c5e47b735
commit 29d59ee155

@ -173,7 +173,7 @@ static int DetectClasstypeSetup(DetectEngineCtx *de_ctx, Signature *s, const cha
*/
bool update_ct = false;
if ((s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICT) != 0) {
if ((s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICIT) != 0) {
/* don't touch Signature::prio */
update_ct = true;
} else if (s->prio == -1) {

@ -89,13 +89,13 @@ static int DetectPrioritySetup (DetectEngineCtx *de_ctx, Signature *s, const cha
return -1;
}
if (s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICT) {
if (s->init_data->init_flags & SIG_FLAG_INIT_PRIO_EXPLICIT) {
SCLogWarning("duplicate priority "
"keyword. Using highest priority in the rule");
s->prio = MIN(s->prio, prio);
} else {
s->prio = prio;
s->init_data->init_flags |= SIG_FLAG_INIT_PRIO_EXPLICT;
s->init_data->init_flags |= SIG_FLAG_INIT_PRIO_EXPLICIT;
}
return 0;
}

@ -255,7 +255,8 @@ typedef struct DetectPort_ {
#define SIG_FLAG_INIT_HAS_TRANSFORM BIT_U32(5)
#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_EXPLICT BIT_U32(8) /**< priority is explicitly set by the priority keyword */
#define SIG_FLAG_INIT_PRIO_EXPLICIT \
BIT_U32(8) /**< priority is explicitly set by the priority keyword */
#define SIG_FLAG_INIT_FILEDATA BIT_U32(9) /**< signature has filedata keyword */
#define SIG_FLAG_INIT_JA3 BIT_U32(10) /**< signature has ja3 keyword */

Loading…
Cancel
Save