mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
Improved MAC address handling when 0.0.0.0 is used so that in this case we take inte MAC address into account
The flow details page now reports the correct MAC
This commit is contained in:
parent
12d77965fd
commit
dfa01cc736
7 changed files with 83 additions and 57 deletions
|
|
@ -666,16 +666,10 @@ local function formatFlowHost(flow, cli_or_srv, historical_bounds, hyperlink_suf
|
|||
|
||||
host_name = host_name .. format_utils.formatFullAddressCategory(host)
|
||||
|
||||
local mac
|
||||
if (host == nil) then
|
||||
mac = nil
|
||||
else
|
||||
mac = host["mac"]
|
||||
end
|
||||
local mac
|
||||
mac = flow[cli_or_srv..".mac"]
|
||||
|
||||
return
|
||||
hostinfo2detailshref(flow2hostinfo(flow, cli_or_srv), hyperlink_params, host_name, tooltip, true --[[ perform link existance checks --]] ),
|
||||
mac
|
||||
return hostinfo2detailshref(flow2hostinfo(flow, cli_or_srv), hyperlink_params, host_name, tooltip, true --[[ perform link existance checks --]] ), mac
|
||||
end
|
||||
|
||||
function formatFlowPort(flow, cli_or_srv, port, historical_bounds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue