From f4dfaacff36bcd1553291abf6deb2fa4fb44da7c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 22 May 2014 12:37:27 +0200 Subject: [PATCH] netflow: log individual tcp flags Log the tcp flags. --- src/output-json-netflow.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/output-json-netflow.c b/src/output-json-netflow.c index 53fc6f5b86..30d799536a 100644 --- a/src/output-json-netflow.c +++ b/src/output-json-netflow.c @@ -226,6 +226,9 @@ static void JsonNetFlowLogJSONToServer(JsonNetFlowLogThread *aft, json_t *js, Fl snprintf(hexflags, sizeof(hexflags), "%02x", ssn ? ssn->client.tcp_flags : 0); json_object_set_new(tjs, "tcp_flags", json_string(hexflags)); + + JsonTcpFlags(ssn ? ssn->client.tcp_flags : 0, tjs); + json_object_set_new(js, "tcp", tjs); } } @@ -273,6 +276,8 @@ static void JsonNetFlowLogJSONToClient(JsonNetFlowLogThread *aft, json_t *js, Fl ssn ? ssn->server.tcp_flags : 0); json_object_set_new(tjs, "tcp_flags", json_string(hexflags)); + JsonTcpFlags(ssn ? ssn->server.tcp_flags : 0, tjs); + json_object_set_new(js, "tcp", tjs); } }