janekdb / scalacraft-domain

A collection of case classes covering commons domains
Apache License 2.0
0 stars 0 forks source link

Recognise trailing dotted-quad notation for IP6Address #46

Open janekdb opened 9 years ago

janekdb commented 9 years ago

https://en.wikipedia.org/wiki/IPv6_address#Transition_from_IPv4

During the transition of the Internet from IPv4 to IPv6 it is typical to operate in a mixed addressing
environment, and for this purpose a special notation has been introduced to express IPv4-mapped
and IPv4-compatible IPv6 addresses by writing the final 32 bits of an address in the familiar IPv4
dotted-quad notation. For example, the IPv4-mapped IPv6 address ::ffff:c000:0280 is usually written
as ::ffff:192.0.2.128, thus expressing clearly the original IPv4 address that was mapped to IPv6.