mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Various ICMP flow handling improvements
This commit is contained in:
parent
6bd3b75fc4
commit
e190632fd8
7 changed files with 87 additions and 19 deletions
|
|
@ -82,8 +82,7 @@ for key, value in ipairs(flows_stats) do
|
|||
italic = false
|
||||
elseif(not isEmptyString(flows_info["icmp"])) then
|
||||
local icmp = flows_info["icmp"]
|
||||
info = icmp_utils.get_icmp_label(ternary(isIPv4(flows_info["cli.ip"]), 4, 6),
|
||||
icmp["type"], icmp["code"])
|
||||
info = icmp_utils.get_icmp_label(icmp["type"], icmp["code"])
|
||||
elseif(flows_info["proto.ndpi"] == "SIP") then
|
||||
info = getSIPInfo(flows_info)
|
||||
elseif(starts(flows_info["proto.ndpi"], "RTP")) then
|
||||
|
|
@ -356,6 +355,10 @@ end
|
|||
|
||||
local info = value["info"]
|
||||
|
||||
if((info == "") and (value.icmp ~= nil)) then
|
||||
info = icmp_utils.get_icmp_type(value.icmp.type, true)
|
||||
end
|
||||
|
||||
if isScoreEnabled() then
|
||||
record["column_score"] = format_utils.formatValue(value.score.flow_score)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue