Skip to content

Commit

Permalink
Added server/client tcp flags to syslog
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Feb 7, 2025
1 parent fbb2173 commit 4d0353d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3958,6 +3958,12 @@ void Flow::formatGenericFlow(json_object *my_object) {
json_object_object_add(my_object,
Utils::jsonLabel(TCP_FLAGS, "TCP_FLAGS", jsonbuf, sizeof(jsonbuf)),
json_object_new_int(src2dst_tcp_flags | dst2src_tcp_flags));
json_object_object_add(my_object,
Utils::jsonLabel(TCP_FLAGS, "CLIENT_TCP_FLAGS", jsonbuf, sizeof(jsonbuf)),
json_object_new_int(tcp->src2dst_tcp_flags));
json_object_object_add(my_object,
Utils::jsonLabel(TCP_FLAGS, "SERVER_TCP_FLAGS", jsonbuf, sizeof(jsonbuf)),
json_object_new_int(tcp->dst2src_tcp_flags));

json_object_object_add(my_object,
Utils::jsonLabel(TCP_FLAGS, "IN_RETRANSMISSIONS",
Expand Down

0 comments on commit 4d0353d

Please sign in to comment.