mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implements CIDR-matching of flow exclusion list rules
This commit is contained in:
parent
37559ece7b
commit
7e1a3ef51f
2 changed files with 25 additions and 6 deletions
|
|
@ -161,8 +161,8 @@ function ipv4_utils.includes(network, netmask, ip)
|
|||
local lower = network
|
||||
local upper = ipv4_utils.broadcast_address(network, netmask)
|
||||
|
||||
return (ipv4_utils.cmp(ip, lower) > 0) and
|
||||
(ipv4_utils.cmp(ip, upper) < 0)
|
||||
return (ipv4_utils.cmp(ip, lower) >= 0) and
|
||||
(ipv4_utils.cmp(ip, upper) <= 0)
|
||||
end
|
||||
|
||||
-- Get the broadcast address for the given netmask
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue