added feature sorting flows by protocol (#8416)

This commit is contained in:
Luca Ferretti 2024-05-31 16:12:46 +02:00 committed by GitHub
parent 6b5a55497e
commit db8cb2cfa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 4 deletions

View file

@ -39,6 +39,7 @@ local mapping_column_lua_c = {
client = "column_client",
l4_proto = "column_proto_l4",
application = "column_ndpi",
protocol = "column_protocol",
score = "column_score",
first_seen = "column_first_seen",
last_seen = "column_last_seen",
@ -55,6 +56,7 @@ if _GET["start"] and _GET["length"] then
flows_filter.maxHits = tonumber(_GET["length"])
flows_filter.toSkip = tonumber(_GET["start"])
end
if not isEmptyString(_GET["sort"]) then
flows_filter.sortColumn = mapping_column_lua_c[_GET["sort"]]
local order = _GET["order"]