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 
<a...@tweedly.net<mailto:a...@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.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to