From: Victor Julien Date: Thu, 22 May 2014 10:37:27 +0000 (+0200) Subject: netflow: log individual tcp flags X-Git-Tag: suricata-2.1beta1~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4dfaacff36bcd1553291abf6deb2fa4fb44da7c;p=thirdparty%2Fsuricata.git netflow: log individual tcp flags Log the tcp flags. --- 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); } }