httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@covalent.net>
Subject Re: Deny from hostname broken in 2.0 on MacOSX 10.2
Date Thu, 03 Oct 2002 12:09:02 GMT
>> I have stepped through the code of a regular (IPv6-enabled) builda bit and
>> it appears that what comes back from accept(2) is an IPv6 address, which
>> apparently doesn't resolve correctly from mod_authz_host.c. Indeed, the
>> remote address information is eventually (sa_common.c:508) passed to
>> getnameinfo(3) which returns unsuccessfully with EAI_NONAME.
> 
> Can you or somebody else with Jaguar try this program
> 
> http://www.apache.org/~trawick/gni_mapped.c
> 
> and see what happens?  It should print
> 
> look up via IPv4: 0/www.ibm.com
> look up via IPv6: 0/www.ibm.com

Looks like it does the right thing:

[MonaLisa:~/projects/ipv6test] sctemme% curl -O
http://www.apache.org/~trawick/gni_mapped.c
  % Total    % Received % Xferd  Average Speed          Time
Curr.
                                 Dload  Upload Total    Current  Left
Speed
100  1090  100  1090    0     0  10095      0  0:00:00  0:00:00  0:00:00
0
[MonaLisa:~/projects/ipv6test] sctemme% gcc -o gni_mapped gni_mapped.c
[MonaLisa:~/projects/ipv6test] sctemme% file gni_mapped
gni_mapped: Mach-O executable ppc
[MonaLisa:~/projects/ipv6test] sctemme% ./gni_mapped
look up via IPv4: 0/www.ibm.com
look up via IPv6: 0/::ffff:812a:1263
[MonaLisa:~/projects/ipv6test] sctemme%
 
S.

-- 
Covalent Technologies                             sctemme@covalent.net
Engineering group                                Voice: (415) 856 4214
303 Second Street #375 South                       Fax: (415) 856 4210
San Francisco CA 94107

   PGP Fingerprint: 1E74 4E58 DFAC 2CF5 6A03  5531 AFB1 96AF B584 0AB1

=======================================================
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message
=======================================================


Mime
View raw message