If I am being oblique then tadman is being pedantic. Yes an IP address is 32 bit unsigned int and yes thanks to the use of old BSD (inet_addr(3)) libraries you can pass a decimal equivilent for translation to uint32.
I of course presumed our friend wished to verify a dotted quad.
Note tadman's approach breaks in IPV6.(well maybe break is the wrong word, 'is impudent' is probably better).
mitd-Made in the Dark
'My favourite colour appears to be grey.'
In reply to Re: Re: Valid IP?
by mitd
in thread Valid IP?
by Monolith-0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |