mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Harmonized host names in flows and used ASN instead of the meaningless MAC for remote hosts
This commit is contained in:
parent
409a7ceed7
commit
28368ac887
4 changed files with 59 additions and 15 deletions
|
|
@ -1613,7 +1613,11 @@ function hostinfo2label(host_info, show_vlan)
|
|||
end
|
||||
end
|
||||
|
||||
alt_name = getHostAltName(ip)
|
||||
if(host_info.label ~= nil) then
|
||||
alt_name = host_info.label
|
||||
else
|
||||
alt_name = getHostAltName(ip)
|
||||
end
|
||||
|
||||
if not isEmptyString(alt_name) then
|
||||
alt_name = add_vlan_to_alt_name(alt_name, host_info, show_vlan)
|
||||
|
|
@ -1899,6 +1903,7 @@ function flowinfo2hostname(flow_info, host_type, alerts_view)
|
|||
|
||||
local hostinfo = {
|
||||
host = flow_info[host_type..".ip"],
|
||||
label = flow_info[host_type..".host"],
|
||||
mac = flow_info[host_type..".mac"],
|
||||
dhcpHost = flow_info[host_type..".dhcpHost"],
|
||||
broadcast_domain_host = flow_info[host_type..".broadcast_domain_host"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue