mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Reduce UDP unidirectional score
This commit is contained in:
parent
508d040a49
commit
de7adeacfe
1 changed files with 4 additions and 1 deletions
|
|
@ -29,8 +29,11 @@ function script.hooks.all(now)
|
|||
if(flow.getPacketsRcvd() == 0) then
|
||||
-- Now check if the recipient isn't a broadcast/multicast address
|
||||
if(flow.isServerUnicast()) then
|
||||
-- TODO some UDP protocols are inherently unidirectional (e.g. Netflow/sflow)
|
||||
-- they should be excluded
|
||||
|
||||
flow.setStatus(flow_consts.status_types.status_udp_unidirectional.status_id,
|
||||
50--[[ flow score]], 50--[[ cli score ]], 10--[[ srv score ]])
|
||||
5--[[ flow score]], 5--[[ cli score ]], 1--[[ srv score ]])
|
||||
end
|
||||
else
|
||||
flow.clearStatus(flow_consts.status_types.status_udp_unidirectional.status_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue