mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
parent
6574acde53
commit
9dd33409df
4 changed files with 43 additions and 2 deletions
|
|
@ -3398,6 +3398,17 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
-- Compares IPv4 / IPv6 addresses
|
||||
function ip_address_asc(a, b)
|
||||
return(ntop.ipCmp(a, b) < 0)
|
||||
end
|
||||
|
||||
function ip_address_rev(a, b)
|
||||
return(ntop.ipCmp(a, b) > 0)
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
--
|
||||
-- IMPORTANT
|
||||
-- Leave it at the end so it can use the functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue