apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49678] getRemoteAddr() returns IPv6 address on RedHat 9 when IPv6 is disabled
Date Mon, 02 Aug 2010 06:18:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49678

--- Comment #3 from Lalit Mishra <lalit.mishra@airtightnetworks.com> 2010-08-02 02:18:47
EDT ---
(In reply to comment #2)
> "messes up while translating to presentation format."
> 
> messes up how?  It sounds like you are trying to work around some bug in
> handling v4-mapped IPv6 addresses.  What is the actual bug?

This issue is happening when IPv6 is *disabled*. So the socket is actually
bound with AF_INET while APR believes it has been bound with AF_INET6. So,
accept actually returns IPv4 and not v4 mapped IPv6 address. So the conversion
to presentation format essentially produces garbage, which looks like some IPv6
address. For example: ::68f3:7fbd:dcdb:240, ::78f4:dfbd:dcdb:240, etc.

The actual bug is because of "getaddrinfo". It returns IPv6 address "::" even
when IPv6 is disabled. This behavior of getaddrinfo can be bypassed with
AI_ADDRCONFIG flag, which is absent in RH9 and hence the bug.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message