]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
arp: profiling logger id must come before LOGGER_SIZE
authorJason Ish <jason.ish@oisf.net>
Wed, 28 Aug 2024 02:58:09 +0000 (20:58 -0600)
committerVictor Julien <victor@inliniac.net>
Fri, 30 Aug 2024 13:19:01 +0000 (15:19 +0200)
Also added comment to make this more clear.

src/suricata-common.h

index 2091250e49c5aba5a595a195f3126d0fd13216c0..3a6c281cab9053edf0df91f55d737450b1771cd4 100644 (file)
@@ -491,8 +491,10 @@ typedef enum {
     LOGGER_JSON_METADATA,
     LOGGER_JSON_FRAME,
     LOGGER_JSON_STREAM,
-    LOGGER_SIZE,
     LOGGER_JSON_ARP,
+
+    /* Must come last. */
+    LOGGER_SIZE,
 } LoggerId;
 
 /* If we don't have Lua, create a typedef for lua_State so the