From 862780c7c36e02dffb31342b90d61170952b7bfb Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 21 Oct 2017 10:00:08 +0200 Subject: [PATCH] detect: add debug statements for byte_extract/isdataat --- src/detect-byte-extract.c | 2 +- src/detect-isdataat.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-byte-extract.c b/src/detect-byte-extract.c index 262b382868..26166d315c 100644 --- a/src/detect-byte-extract.c +++ b/src/detect-byte-extract.c @@ -193,7 +193,7 @@ int DetectByteExtractDoMatch(DetectEngineThreadCtx *det_ctx, const SigMatchData det_ctx->buffer_offset = ptr - payload; *value = val; - + SCLogDebug("extracted value is %"PRIu64, val); return 1; } diff --git a/src/detect-isdataat.c b/src/detect-isdataat.c index 8d75a19674..01631d8dbb 100644 --- a/src/detect-isdataat.c +++ b/src/detect-isdataat.c @@ -239,6 +239,7 @@ int DetectIsdataatSetup (DetectEngineCtx *de_ctx, Signature *s, const char *isda } idad->dataat = ((DetectByteExtractData *)bed_sm->ctx)->local_id; idad->flags |= ISDATAAT_OFFSET_BE; + SCLogDebug("isdataat uses byte_extract with local id %u", idad->dataat); SCFree(offset); } -- 2.47.2