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

@ -832,13 +832,13 @@ function formatTCPFlags(flags)
local out = ''
if (hasbit(flags, 0x02)) then
out = out .. '<span class="badge bg-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="SYN">S</span> '
out = out .. '<span class="badge bg-primary" data-bs-toggle="tooltip" data-bs-placement="bottom" title="SYN">S</span> '
end
if (hasbit(flags, 0x10)) then
out = out .. '<span class="badge bg-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="ACK">A</span> '
end
if (hasbit(flags, 0x01)) then
out = out .. '<span class="badge bg-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="FIN">F</span> '
out = out .. '<span class="badge bg-primary" data-bs-toggle="tooltip" data-bs-placement="bottom" title="FIN">F</span> '
end
if (hasbit(flags, 0x08)) then
out = out .. '<span class="badge bg-info" data-bs-toggle="tooltip" data-bs-placement="bottom" title="PSH">P</span> '