]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: log individual tcp flags
authorVictor Julien <victor@inliniac.net>
Thu, 22 May 2014 10:39:12 +0000 (12:39 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 28 Jul 2014 13:47:45 +0000 (15:47 +0200)
Log the tcp flags.

src/output-json-flow.c

index 685010ef1dbf5c946f8b528538fe74e33d5cedf5..d5f51593e01ea711b761cacccf92ca00c0325a63 100644 (file)
@@ -234,6 +234,8 @@ static void JsonFlowLogJSON(JsonFlowLogThread *aft, json_t *js, Flow *f)
                 ssn ? ssn->server.tcp_flags : 0);
         json_object_set_new(tjs, "tcp_flags_tc", json_string(hexflags));
 
+        JsonTcpFlags(ssn ? ssn->tcp_packet_flags : 0, tjs);
+
         json_object_set_new(js, "tcp", tjs);
     }
 }