mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Reworked flow dump
Conditionally enabled clickhouse flow dump based on preference
This commit is contained in:
parent
23f714ab47
commit
fe4cba574d
8 changed files with 114 additions and 102 deletions
|
|
@ -615,6 +615,22 @@ local magic_short_macs = {
|
|||
|
||||
-- ###############################################
|
||||
|
||||
-- get_symbolic_mac
|
||||
function get_symbolic_mac_rev(mac_address)
|
||||
if (magic_macs[mac_address] ~= nil) then
|
||||
return (magic_macs[mac_address])
|
||||
else
|
||||
local m = string.sub(mac_address, 1, 8)
|
||||
local s = get_mac_classification(m)
|
||||
|
||||
if ((s ~= nil) and (s ~= m)) then
|
||||
return(mac_address.. " [".. trimSpace(s) .."]")
|
||||
end
|
||||
end
|
||||
|
||||
return(mac_address)
|
||||
end
|
||||
|
||||
-- get_symbolic_mac
|
||||
function get_symbolic_mac(mac_address, no_href, add_extra_info)
|
||||
if (magic_macs[mac_address] ~= nil) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue