AF_INET6 sockets and IPv4 connections, etc.

Philip Prindeville philipp_subx at redfish-solutions.com
Wed Jan 12 19:18:02 UTC 2011


On 1/11/11 8:25 PM, Jerry James wrote:
> On Tue, Jan 11, 2011 at 1:46 PM, Philip Prindeville <philipp_subx at redfish-solutions.com <mailto:philipp_subx at redfish-solutions.com>> wrote:
>
>     so how can I tell in a couple of lines of code if the connection will result in IPv4?
>
>
> I'm not entirely sure what you're talking about.  What software are you attempting to patch, for example?  But anyway, is the IN6_IS_ADDR_V4MAPPED macro in <netinet/in.h> what you are looking for?

Yeah, that was it.  I started grepping around the glibc sources and eventually figured it out.



More information about the devel mailing list