mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Uses new localization for icmp types and codes
This commit is contained in:
parent
141cbeb2bc
commit
0eb75bf884
10 changed files with 9 additions and 581 deletions
|
|
@ -10,6 +10,7 @@ require "flow_utils"
|
|||
local format_utils = require("format_utils")
|
||||
local flow_consts = require "flow_consts"
|
||||
local flow_utils = require "flow_utils"
|
||||
local icmp_utils = require "icmp_utils"
|
||||
local json = require "dkjson"
|
||||
|
||||
local have_nedge = ntop.isnEdge()
|
||||
|
|
@ -54,7 +55,7 @@ for key, value in ipairs(flows_stats) do
|
|||
info = flows_stats[key]["info"]
|
||||
italic = false
|
||||
elseif(not isEmptyString(flows_stats[key]["icmp"])) then
|
||||
info = getICMPTypeCode(flows_stats[key]["icmp"])
|
||||
info = icmp_utils.get_icmp_label(ternary(isIPv4(flows_stats[key]["cli.ip"]), 4, 6), flows_stats[key]["icmp"]["type"], flows_stats[key]["icmp"]["code"])
|
||||
elseif(flows_stats[key]["proto.ndpi"] == "SIP") then
|
||||
info = getSIPInfo(flows_stats[key])
|
||||
elseif(flows_stats[key]["proto.ndpi"] == "RTP") then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue