[122136] in North American Network Operators' Group
Re: Regular Expression for IPv6 addresses
daemon@ATHENA.MIT.EDU (James Hess)
Sat Feb 6 17:53:11 2010
In-Reply-To: <20100205.071511.74727694.sthaug@nethelp.no>
Date: Sat, 6 Feb 2010 16:52:33 -0600
From: James Hess <mysidia@gmail.com>
To: sthaug@nethelp.no
Cc: nanog@nanog.org, Richard.E.Brown@dartware.com
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org
On Fri, Feb 5, 2010 at 12:15 AM, <sthaug@nethelp.no> wrote:
>> > And now for the trick question. =A0Is ::ffff:077.077.077.077 a legal
>> > mapped address and if it, does it match 077.077.077.077?
Wasn't there an internet draft on that subject, recently?
http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04
077.077.077.077 is equivalent to 77.77.77.77 if valid at all
RFC 4038 is very clear that the text representation of a mapped IPv4
address is Base 10. http://tools.ietf.org/html/rfc4038#section-5.1
This is a bit like asking if "::ffff:10.1.2" is a valid IP
address though.
And is it the same as the ip address "10.1.2" ?
(Which of course expands to 10.1.0.2, on common implementations of
inet_pton, inet_aton, and getaddrinfo) Or ::ffff:0xA010002
I would say these are perfectly valid _shorthands_ and
abbreviations for entering an IP address, which may be provided by
some systems, but that they are non-canonical text representations
for displaying publishing or sharing IP addresses.
--
-J