]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/tx: add warning to avoid future bugs
authorVictor Julien <victor@inliniac.net>
Thu, 1 Apr 2021 12:27:30 +0000 (14:27 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 1 Apr 2021 12:30:31 +0000 (14:30 +0200)
src/suricata-common.h

index 56baedac5677344925a60f586ff509dd46ae6af5..6dbcb3d0f5c211f0577444c51aff837e3f5b5574 100644 (file)
@@ -467,6 +467,11 @@ typedef enum {
     LOGGER_JSON_DCERPC,
     LOGGER_JSON_HTTP2,
 
+    /** \warning when we exceed what we can express as a u32 flag here we need to update
+     *           LoggerFlags::flags (u32) and `tx_logged` in src/output-tx.c */
+
+    /* non-tx loggers below */
+
     LOGGER_ALERT_DEBUG,
     LOGGER_ALERT_FAST,
     LOGGER_UNIFIED2,