Mapped versus compatible
These two look almost identical and mean different things. ::ffff:192.0.2.1 is IPv4-mapped and is current: it represents an IPv4 host to IPv6 API surfaces. ::192.0.2.1 is IPv4-compatible, was intended for automatic tunnelling, and has been deprecated since RFC 4291.
The single difference is the ffff group. Parsers that accept both and treat them alike have a bug that shows up as an address matching a rule it should not.
The prefixes involved
| Prefix | Form | Status |
|---|---|---|
| ::ffff:0:0/96 | IPv4-mapped | Current — what dual-stack sockets report |
| 64:ff9b::/96 | NAT64 well-known | Current — requires a NAT64 gateway |
| 2002::/16 | 6to4 | Deprecated (RFC 7526) |
| ::/96 | IPv4-compatible | Deprecated (RFC 4291) |