Free IP Calculator

Bob Sneidar bobsneidar at iotecdigital.com
Sat Jan 10 01:42:37 CET 2015


Looks like that whacks some other things. I’ll look at this on the weekend and verify all the returned values are correct. I can’t believe I saw 25 when it was supposed to be 23 and I didn’t catch it.

Bob S


On Jan 9, 2015, at 13:21 , Alex Tweedly <alex at tweedly.net<mailto:alex at tweedly.net>> wrote:

Thanks Bob - that looks really useful.

You do need one tiny tweak - the CIDR calculations are slightly off, because of the "."s in  theBinSubnetMask.
I added the line
 replace "." with empty in theBinSubnetMask
just before
  put offset("0", theBinSubnetMask) into theFirstNodeChar

to get the right answer (e.g. 24 instead of 27 in   192.168.1.1 255.255.255.0)

Thanks again
-- Alex.



More information about the use-livecode mailing list