Hide zero MAC address in remote to remote alerts

Addresses #3644
This commit is contained in:
emanuele-f 2020-05-19 14:37:30 +02:00
parent 6daf449e31
commit 39d76d233d
7 changed files with 53 additions and 43 deletions

View file

@ -10,9 +10,8 @@ local function remoteToRemoteFormatter(ifid, alert, info)
return(i18n("alert_messages.host_remote_to_remote", {
url = ntop.getHttpPrefix() .. "/lua/host_details.lua?host=" .. hostinfo2hostkey(hostkey2hostinfo(alert.alert_entity_val)),
flow_alerts_url = ntop.getHttpPrefix() .."/lua/show_alerts.lua?status=historical-flows&alert_type="..alert_consts.alertType("alert_remote_to_remote"),
mac_url = ntop.getHttpPrefix() .."/lua/mac_details.lua?host="..info.mac,
ip = info.host,
mac = get_symbolic_mac(info.mac, true),
mac = get_mac_url(info.mac),
}))
end