mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
parent
e3be9b993a
commit
f73c3b32f1
5 changed files with 38 additions and 4 deletions
|
|
@ -98,4 +98,14 @@ if(trace_script_duration ~= nil) then
|
|||
io.write(debug.getinfo(1,'S').source .." executed in ".. (os.clock()-clock_start)*1000 .. " ms\n")
|
||||
end
|
||||
|
||||
function icmp_utils.is_suspicious_entropy(e_min, e_max)
|
||||
local diff = e_max - e_min
|
||||
|
||||
if((e_min < 5) or (e_max >= 6) or (diff > 0.2)) then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
return icmp_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue