lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,


I'm writing some auth plugin that will have to check if given
remote-ip belongs to specific network.
Is there some tool that have similar functions to ipcalc tool ?
Something similar to:
=check_ip("10.10.10.1","10.10.10.0/24")
true
=check_ip("192.168.1.10","192.168.2.0/24")
false

Otherwise I have to write my own using bitlib module ..

:)
Regards,


-- 
Marcin,