kazu-yamamoto/iproute — pull request #5 by rekado (2012-06-28 09:09:31+00:00)
Title: add parser for embedded IPv4 in IPv6 addresses

This patch extends the IPv6 parser according to RFC 3513 2.2.3:

An alternative form that is sometimes more convenient when dealing
with a mixed environment of IPv4 and IPv6 nodes is
`x:x:x:x:x:x:d.d.d.d`, where the 'x's are the hexadecimal values of the
six high-order 16-bit pieces of the address, and the 'd's are the
decimal values of the four low-order 8-bit pieces of the address
(standard IPv4 representation).

This textual representation is also used for translated IPv4 addresses
according to RFC 2765 2.1.