From: Victor Julien Date: Wed, 30 Nov 2022 15:15:58 +0000 (+0100) Subject: output/capture: group source and runmode X-Git-Tag: suricata-7.0.0-rc1~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=199e444498392004cdbba01cf3c858b00a7d0050;p=thirdparty%2Fsuricata.git output/capture: group source and runmode So outputs from runmode-af-packet and source-af-packet both will show 'af-packet' as the module. --- diff --git a/src/util-debug.c b/src/util-debug.c index f26d833d9e..15d9e60cfe 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -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;