From 169ee11ead749c5517ef1ad0ec3036454935b92e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 16 Jan 2023 11:45:41 +0100 Subject: [PATCH] output/frame: log frame type stream --- src/output-json-frame.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/output-json-frame.c b/src/output-json-frame.c index 2b594a3f07..68ecd95d48 100644 --- a/src/output-json-frame.c +++ b/src/output-json-frame.c @@ -230,7 +230,11 @@ void FrameJsonLogOneFrame(const uint8_t ipproto, const Frame *frame, const Flow DEBUG_VALIDATE_BUG_ON(ipproto != f->proto); jb_open_object(jb, "frame"); - jb_set_string(jb, "type", AppLayerParserGetFrameNameById(ipproto, f->alproto, frame->type)); + if (frame->type == FRAME_STREAM_TYPE) { + jb_set_string(jb, "type", "stream"); + } else { + jb_set_string(jb, "type", AppLayerParserGetFrameNameById(ipproto, f->alproto, frame->type)); + } jb_set_uint(jb, "id", frame->id); jb_set_string(jb, "direction", PKT_IS_TOSERVER(p) ? "toserver" : "toclient"); -- 2.47.2