Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 63729 invoked by uid 500); 3 Oct 2002 12:09:04 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 63714 invoked from network); 3 Oct 2002 12:09:04 -0000 User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Thu, 03 Oct 2002 05:09:02 -0700 Subject: Re: Deny from hostname broken in 2.0 on MacOSX 10.2 From: Sander Temme To: Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >> 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 =======================================================