]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
util/var: add comments explaining types
authorVictor Julien <vjulien@oisf.net>
Mon, 4 Mar 2024 11:29:24 +0000 (12:29 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Jun 2024 05:39:48 +0000 (07:39 +0200)
src/util-var.h

index c8e7d5af6d0cb72a264a5f93fead1d287a242275..fe3010097da780224d1fa7cb17d744608d032ca9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2010 Open Information Security Foundation
+/* Copyright (C) 2007-2024 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -24,6 +24,7 @@
 #ifndef SURICATA_UTIL_VAR_H
 #define SURICATA_UTIL_VAR_H
 
+/** variable types: these are used to track variable names */
 enum VarTypes {
     VAR_TYPE_NOT_SET,
 
@@ -46,7 +47,7 @@ enum VarTypes {
 };
 
 typedef struct GenericVar_ {
-    uint8_t type;
+    uint8_t type; /**< variable type, uses detection sm_type */
     uint8_t pad[3];
     uint32_t idx;
     struct GenericVar_ *next;