netflow: log individual tcp flags

Log the tcp flags.
pull/1058/head
Victor Julien 11 years ago
parent eaf01449e3
commit f4dfaacff3

@ -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);
}
}

Loading…
Cancel
Save