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:
Luca Deri 2025-03-29 14:42:05 +01:00
parent 12d77965fd
commit dfa01cc736
7 changed files with 83 additions and 57 deletions

View file

@ -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)