mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Set broadcast domain alert entity to the sender mac
This commit is contained in:
parent
09e560cacc
commit
fa5605df6a
1 changed files with 2 additions and 2 deletions
|
|
@ -2331,7 +2331,7 @@ end
|
|||
-- Global function
|
||||
function check_broadcast_domain_too_large_alerts()
|
||||
local alert = alerts:newAlert({
|
||||
entity = "interface",
|
||||
entity = "mac",
|
||||
type = "broadcast_domain_too_large",
|
||||
severity = "warning",
|
||||
})
|
||||
|
|
@ -2347,7 +2347,7 @@ function check_broadcast_domain_too_large_alerts()
|
|||
elems = json.decode(message)
|
||||
|
||||
if elems ~= nil then
|
||||
local entity_value = "iface_"..elems.ifid
|
||||
local entity_value = elems.src_mac
|
||||
|
||||
--io.write(elems.ip.." ==> "..message.."[".. elems.ifname .."]\n")
|
||||
interface.select(elems.ifname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue