]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: add comments for DETECT_SM_LIST_* types
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 2 Mar 2023 07:28:17 +0000 (12:58 +0530)
committerVictor Julien <vjulien@oisf.net>
Mon, 6 Mar 2023 07:26:02 +0000 (08:26 +0100)
src/detect.h

index 5f6d90242b9a71ee501ab15bceb3ab00a72851be..2a1b7c6d2f2b5f8f35d05084a0e40dde986d9aac 100644 (file)
@@ -75,7 +75,9 @@ struct SCSigSignatureWrapper_;
  * These codes are access points to particular lists in the array
  * Signature->sm_lists[DETECT_SM_LIST_MAX]. */
 enum DetectSigmatchListEnum {
+    /* list for non-payload per packet matches, e.g. ttl, flow keyword */
     DETECT_SM_LIST_MATCH = 0,
+    /* list for payload and stream match */
     DETECT_SM_LIST_PMATCH,
 
     /* base64_data keyword uses some hardcoded logic so consider