[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: IP callculation library (ipcalc)
- From: Marcin Jurczuk <mjurczuk@...>
- Date: Mon, 22 Nov 2010 22:53:47 +0100
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,