Robert,
I don't know how to do this offhand, but you can convert IP addresses to
a single big integer number. What you could do is figure out the start
IP and end IP numbers, then do a simple FOR loop. For each loop
iteration, you could take that number and convert it back to an IP
address and
thx!
-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 9:44 AM
To: CF-Talk
Subject: RE: list help
Robert,
I don't know how to do this offhand, but you can convert IP addresses to
a single big integer number. What you could do is figure out
192.29.22 http://192.29.22.0/ is constant. 0 to 225 is not.
Make an array? append 0-225 on the end of 192.29.22 and then do your
checks/show the list of what's available?
~Todd
On Nov 5, 2007 9:44 AM, Ben Nadel [EMAIL PROTECTED] wrote:
Robert,
I don't know how to do this offhand, but you
cfdump
var=#getUnusedIPs('192.29.22.2,192.29.22.6','192.29.22.0','192.29.22.10')#
cffunction name=getUnusedIPs returntype=array
cfargument name=ipList type=string required=true/
cfargument name=rangeStart type=string required=true/
cfargument name=rangeEnd type=string
but you can convert IP addresses to a single big integer number.
Exactly, and there is a function to do this in CFLib.org:
http://www.cflib.org/udf.cfm?id=733enable=0
And if you're familiar with regExp, see this one too:
http://www.cflib.org/udf.cfm?id=1075enable=1
--
I don't know how to do this offhand, but you can convert IP addresses to
a single big integer number. What you could do is figure out the start
IP and end IP numbers, then do a simple FOR loop. For each loop
iteration, you could take that number and convert it back to an IP
address and check it.
[mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 11:11 AM
To: CF-Talk
Subject: Re: list help
but you can convert IP addresses to a single big integer number.
Exactly, and there is a function to do this in CFLib.org:
http://www.cflib.org/udf.cfm?id=733enable=0
And if you're familiar
One question, how would I do a Regexp on an IP range of let's say
192.29.13.1 to 192.29.13.255?
I would try something like 192\.29\.13\.[0-9]{1,3} although this will
match 192.29.13.1 to 192.29.13.999 as well,
but if you are getting the IP from the HTTP request, there is no
possibility the
I convert IPs to numbers anytime I deal with ranges. It makes it much easier
and more efficient to work with ranges. I don't mean that I convert them to
their actual decimal values, I just make sure each octet is 3 digits and
remove the (.)
It's much simpler than converting them to their decimal
#ListGetAt(eList, ListPosition, ,)#
You can get that type of error if your listposition variable is 0
sabrina
- Original Message -
From: Joshua Tipton
To: CF-Talk
Sent: Wednesday, May 09, 2001 4:33 AM
Subject: list help
Please help me to figure out why this isnt
10 matches
Mail list logo