mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add cli-srv-srv_port-app_proto aggregation type. (#8216)
This commit is contained in:
parent
05ef02bca3
commit
88821b739a
7 changed files with 122 additions and 8 deletions
|
|
@ -90,6 +90,8 @@ elseif criteria == "server" then
|
|||
criteria_type_id = 3
|
||||
elseif criteria == "client_server_srv_port" then
|
||||
criteria_type_id = 7
|
||||
elseif criteria == "client_server_srv_port_app_proto" then
|
||||
criteria_type_id = 8
|
||||
elseif ntop.isEnterpriseM() then
|
||||
criteria_type_id = get_criteria_type_id(criteria)
|
||||
end
|
||||
|
|
@ -151,6 +153,17 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
if(data.srv_port ~= nil) then
|
||||
add_server_port = true
|
||||
end
|
||||
elseif (criteria_type_id == 8) then
|
||||
if(data.server_ip ~= nil) then
|
||||
add_server = true
|
||||
end
|
||||
if(data.client_ip ~= nil) then
|
||||
add_client = true
|
||||
end
|
||||
if(data.srv_port ~= nil) then
|
||||
add_server_port = true
|
||||
end
|
||||
add_app_proto = true
|
||||
elseif ntop.isEnterpriseM() then
|
||||
response = get_output_flags(criteria_type_id)
|
||||
end
|
||||
|
|
@ -261,7 +274,7 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
label = getFullVlanName(data.vlan_id)
|
||||
}
|
||||
end
|
||||
if criteria_type_id == 1 or criteria_type_id == 5 then
|
||||
if criteria_type_id == 1 or criteria_type_id == 5 or criteria_type_id == 8 then
|
||||
item.app_proto_is_not_guessed = data.is_not_guessed
|
||||
item.confidence_name = get_confidence(ternary(application.id == "0", "-1", ternary(data.is_not_guessed, "1", "0")))
|
||||
item.confidence = ternary(data.is_not_guessed, 1, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue