C
Chen
Hi,
I'm trying to the best way to validate that a specified
IP is inside a known range of IP. The IP is held in an
IPAddress type which hold the actual IP in as long and so
the statement:
224.1.0.0 > 224.0.1.0 does not necesarily translate to:
480 > 65760 (which is the representation of these IP as
long).
I would expect that i would able to do something like:
ipAddress.Address > pAddress1.Address
I know I can do all kind of string or mathematical
manipulations but I am hoping for a more elegant solution
that will take advantage of the fact that the data is
held as IPAddress type.
Thanks,
Chen
I'm trying to the best way to validate that a specified
IP is inside a known range of IP. The IP is held in an
IPAddress type which hold the actual IP in as long and so
the statement:
224.1.0.0 > 224.0.1.0 does not necesarily translate to:
480 > 65760 (which is the representation of these IP as
long).
I would expect that i would able to do something like:
ipAddress.Address > pAddress1.Address
I know I can do all kind of string or mathematical
manipulations but I am hoping for a more elegant solution
that will take advantage of the fact that the data is
held as IPAddress type.
Thanks,
Chen