From f98b5ecd6a1792076fd0fa5b45fd2fa637fd0748 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 12 Feb 2019 15:30:15 +0100 Subject: [PATCH] flow: log gap state per direction --- src/output-json-flow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/output-json-flow.c b/src/output-json-flow.c index 0eb31145c0..e59f7c8698 100644 --- a/src/output-json-flow.c +++ b/src/output-json-flow.c @@ -346,6 +346,10 @@ static void JsonFlowLogJSON(JsonFlowLogThread *aft, json_t *js, Flow *f) break; } json_object_set_new(tjs, "state", json_string(tcp_state)); + if (ssn->client.flags & STREAMTCP_STREAM_FLAG_GAP) + json_object_set_new(tjs, "gap_ts", json_true()); + if (ssn->server.flags & STREAMTCP_STREAM_FLAG_GAP) + json_object_set_new(tjs, "gap_tc", json_true()); } json_object_set_new(js, "tcp", tjs);