Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gsockaddr: V4-mapped addresses should be formatted as an IPv4 address
V4-mapped address space is a compatibility feature of dual-stack TCP/IP stacks, where IPv4 connections can be established to IPv6 capable sockets. When this happens, the client IP address would be a V4-mapped address, as determined by the IN6_IS_ADDR_V4MAPPED() function, which is equivalent to an "::FFFF:<ipv4>" address (see RFC3493) This change would trickle into how we fill $HOST if we didn't find a hostname there, previously these would have the form of "::FFFF:ipv4", with this one they would become "ipv4" just as if we received them using an ipv4 specific source. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
- Loading branch information