]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/capture: group source and runmode
authorVictor Julien <vjulien@oisf.net>
Wed, 30 Nov 2022 15:15:58 +0000 (16:15 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 20 Dec 2022 07:51:33 +0000 (08:51 +0100)
So outputs from runmode-af-packet and source-af-packet both will
show 'af-packet' as the module.

src/util-debug.c

index f26d833d9e6ee9390a59da2a9bef9426100ff7c8..15d9e60cfe811ccfd09ce10fcd742c9fdd5f82ae 100644 (file)
@@ -313,6 +313,9 @@ static const char *SCTransformModule(const char *module_name, int *dn_len)
     } else if (strncmp("source-", module_name, 7) == 0) {
         *dn_len = strlen(module_name) - 7;
         return module_name + 7;
+    } else if (strncmp("runmode-", module_name, 8) == 0) {
+        *dn_len = strlen(module_name) - 8;
+        return module_name + 8;
     } else if (strncmp("app-layer-", module_name, 10) == 0) {
         *dn_len = strlen(module_name);
         return module_name;