Implemented historical TCP flow stats formatting

Changed TCP flags color to make them easier to detect
This commit is contained in:
Luca Deri 2025-11-04 12:44:18 +01:00
parent e22bc9c344
commit 81907d8df8
8 changed files with 81 additions and 43 deletions

View file

@ -310,15 +310,19 @@ end
-- ###############################################
local function format_historical_tcp_flags(flow, info)
tprint(info)
return {
name = i18n("tcp_flags"),
values = {
[1] = i18n("client") ..
" <i class=\"fas fa-long-arrow-alt-right\"></i> " ..
i18n("server") .. ": " .. info.src2dst_tcp_flags.label,
i18n("server") .. ": " .. info.src2dst_tcp_flags.label
.. formatTCPStats(info.protocol_info_json.tcp_flags_analysis.cli2srv),
[2] = i18n("server") ..
" <i class=\"fas fa-long-arrow-alt-right\"></i> " ..
i18n("client") .. ": " .. info.dst2src_tcp_flags.label
i18n("client") .. ": " .. info.dst2src_tcp_flags.label
.. formatTCPStats(info.protocol_info_json.tcp_flags_analysis.srv2cli),
}
}
end