|
|
@ -1335,14 +1335,19 @@ static int SignatureIsDEOnly(DetectEngineCtx *de_ctx, Signature *s) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SigMatch *sm = s->match;
|
|
|
|
SigMatch *sm = s->match;
|
|
|
|
if (sm == NULL)
|
|
|
|
/* check for conflicting keywords */
|
|
|
|
goto deonly;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ( ;sm != NULL; sm = sm->next) {
|
|
|
|
for ( ;sm != NULL; sm = sm->next) {
|
|
|
|
if ( !(sigmatch_table[sm->type].flags & SIGMATCH_DEONLY_COMPAT))
|
|
|
|
if ( !(sigmatch_table[sm->type].flags & SIGMATCH_DEONLY_COMPAT))
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* need at least one decode event keyword to be condered decode event. */
|
|
|
|
|
|
|
|
for ( ;sm != NULL; sm = sm->next) {
|
|
|
|
|
|
|
|
if (sm->type == DETECT_DECODE_EVENT)
|
|
|
|
|
|
|
|
goto deonly;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
deonly:
|
|
|
|
deonly:
|
|
|
|
if (!(de_ctx->flags & DE_QUIET)) {
|
|
|
|
if (!(de_ctx->flags & DE_QUIET)) {
|
|
|
|
SCLogDebug("DE-ONLY (%" PRIu32 "): source %s, dest %s", s->id,
|
|
|
|
SCLogDebug("DE-ONLY (%" PRIu32 "): source %s, dest %s", s->id,
|
|
|
|