Hi,
- Is there a function that can validate IP addresses?
- Is there a function that can validate MAC addresses?
Hugo
Mark Randall - 07 Mar 2005 19:41 GMT
Maybe, and No...
However:
A MAC is simply a char[6] (6 bytes, not actually a string) and any 6 bytes
are valid - but some manufacturers / card ID's wont have been assigned. No
way to tell...
IP Wise look up illegal addresses and such.
- MR
> Hi,
>
> - Is there a function that can validate IP addresses?
> - Is there a function that can validate MAC addresses?
>
> Hugo
thatsalok - 08 Mar 2005 05:03 GMT
I believe you have to write your own Api to validate correct IP adress and
Mac Address as Microsoft Doesn't rpovide any api yet to check that.
--
With Regards
Alok Gupta
Visit me at http://alok.bizhat.com
"I Believe this will Help"
> Hi,
>
> - Is there a function that can validate IP addresses?
> - Is there a function that can validate MAC addresses?
>
> Hugo
Alexander Grigoriev - 09 Mar 2005 06:15 GMT
It depends on your definition of valid MAC address and valid IP address.
> Hi,
>
> - Is there a function that can validate IP addresses?
> - Is there a function that can validate MAC addresses?
>
> Hugo
H.B. - 14 Mar 2005 17:10 GMT
It's about syntax ...
I must validate syntax for two strings : IP string (xxx.xxx.xxx.xxx) and
MAC string. (xx-xx-xx-xx-xx-xx)
> It depends on your definition of valid MAC address and valid IP address.
>
[quoted text clipped - 4 lines]
> >
> > Hugo
Frank Hickman [MVP] - 14 Mar 2005 18:32 GMT
> It's about syntax ...
>
> I must validate syntax for two strings : IP string (xxx.xxx.xxx.xxx) and
> MAC string. (xx-xx-xx-xx-xx-xx)
That should be easy enough, the IP segments are between 0-255 and MAC
segments should be in the range (hex) 00-FF.

Signature
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.