]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
datasets: comment to specify usage of field
authorEric Leblond <el@stamus-networks.com>
Mon, 9 Jun 2025 08:34:31 +0000 (10:34 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 11 Jun 2025 18:49:18 +0000 (20:49 +0200)
src/detect-dataset.h
src/detect.h

index 7c4abaf1c1e73c19e391f1cb4ee039e8a937eecd..3907648985a9010bc3f4502e56bdfeebb7c0e128 100644 (file)
@@ -33,7 +33,7 @@ typedef struct DetectDatasetData_ {
     DatasetFormats format;
     DataJsonType json;
     char json_key[SIG_JSON_CONTENT_KEY_LEN];
-    void *id;
+    void *id; /* pointer to the triggering signature */
 } DetectDatasetData;
 
 int DetectDatasetBufferMatch(DetectEngineThreadCtx *det_ctx,
index 74ed556467ea372da4fedf831623f8dd5e2112fe..eaa2d2bfd654617538434f11dae8caf9b629221e 100644 (file)
@@ -1234,7 +1234,7 @@ typedef struct PostRuleMatchWorkQueue {
 
 /** structure to store the json content with info on sig that triggered it */
 typedef struct SigJsonContent {
-    void *id;
+    void *id; /**< pointer to the sig that triggered this json content */
     char json_content[SIG_JSON_CONTENT_ITEM_LEN];
 } SigJsonContent;