On Wednesday 18 August 2010, bryanm@acsalaska.net elucidated thus:
> On Wed, August 18, 2010 1:23 am, Michael Fowler wrote:
> > Given you aren't actually looking for this in text, then using
> > inet_aton() or inet_pton() to validate your IP address would also
> > be a good idea. There are many things that can be treated as a
> > valid IP address that are not simply a dotted quad.
>
> Okay, you've piqued my interest. I'm aware that an IP address can
> be expressed as a single integer (e.g. 127.0.0.1 = 2130706433).
> What other forms are there for a numerical address?
The most obvious would be other bases, e.g. hex:
hex: 7f000001
oct: 17700000001
bin: 1111111000000000000000000000001
Related geek humor:
Why do geeks get Christmas and Halloween confused?
Because Dec 25 == Oct 31.
j
-- Joshua Kugler Part-Time System Admin/Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A --------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.Received on Thu Aug 19 09:39:53 2010
This archive was generated by hypermail 2.1.8 : Thu Aug 19 2010 - 09:39:53 AKDT