mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Implemented historical TCP flow stats formatting
Changed TCP flags color to make them easier to detect
This commit is contained in:
parent
e22bc9c344
commit
81907d8df8
8 changed files with 81 additions and 43 deletions
|
|
@ -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> '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue