]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/frame: log frame type stream
authorVictor Julien <vjulien@oisf.net>
Mon, 16 Jan 2023 10:45:41 +0000 (11:45 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 23 Jan 2023 10:29:01 +0000 (11:29 +0100)
src/output-json-frame.c

index 2b594a3f07fe27f095d1f18c4aa780eb99293b3b..68ecd95d48dcf0cf5f070d28c445cd2ab43354fb 100644 (file)
@@ -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");