From: Victor Julien Date: Mon, 16 Jan 2023 10:45:41 +0000 (+0100) Subject: output/frame: log frame type stream X-Git-Tag: suricata-7.0.0-rc1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=169ee11ead749c5517ef1ad0ec3036454935b92e;p=thirdparty%2Fsuricata.git output/frame: log frame type stream --- 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");