From: Juliana Fajardini Date: Mon, 24 Mar 2025 19:29:40 +0000 (-0700) Subject: exceptions: move reassembly memcap stats to common counter X-Git-Tag: suricata-8.0.0-beta1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a3b1553ccd58127bd3e35bd7987fb420909387d;p=thirdparty%2Fsuricata.git exceptions: move reassembly memcap stats to common counter Part of making the exception policy stats counters more search friendly. Task #7185 --- diff --git a/etc/schema.json b/etc/schema.json index 8c6a359b1d..9b65eb063d 100644 --- a/etc/schema.json +++ b/etc/schema.json @@ -6181,6 +6181,11 @@ "description": "How many times session memcap exception policy was applied, and which one", "$ref": "#/$defs/exceptionPolicy" + }, + "reassembly": { + "description": + "How many times reassembly memcap exception policy was applied, and which one", + "$ref": "#/$defs/exceptionPolicy" } } } @@ -6636,11 +6641,6 @@ "pseudo": { "type": "integer" }, - "reassembly_exception_policy": { - "description": - "How many times reassembly memcap exception policy was applied, and which one", - "$ref": "#/$defs/exceptionPolicy" - }, "reassembly_gap": { "type": "integer" }, diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 811f82fe69..211780e7e7 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -6027,7 +6027,7 @@ TmEcode StreamTcpThreadInit(ThreadVars *tv, void *initdata, void **data) ExceptionPolicySetStatsCounters(tv, &stt->ra_ctx->counter_tcp_reas_eps, &stream_reassembly_memcap_eps_stats, stream_config.reassembly_memcap_policy, - "tcp.reassembly_exception_policy.", IsReassemblyMemcapExceptionPolicyStatsValid); + "exception_policy.tcp.reassembly.", IsReassemblyMemcapExceptionPolicyStatsValid); stt->ra_ctx->counter_tcp_segment_from_cache = StatsRegisterCounter("tcp.segment_from_cache", tv);