Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 78102 invoked from network); 31 Aug 2003 17:47:29 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Aug 2003 17:47:29 -0000 Received: (qmail 93191 invoked by uid 500); 31 Aug 2003 17:47:20 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 92986 invoked by uid 500); 31 Aug 2003 17:47:18 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 92969 invoked from network); 31 Aug 2003 17:47:18 -0000 Date: Sun, 31 Aug 2003 18:46:51 +0100 From: Colm MacCarthaigh To: Justin Erenkrantz Cc: trawick@attglobal.net, dev@apr.apache.org Subject: Re: cvs commit: apr configure.in CHANGES Message-ID: <20030831174651.GA22785@castlerea.stdlib.net.> Reply-To: colm@stdlib.net References: <2147483647.1062107774@[10.0.1.55]> <20030829092609.GA16055@castlerea.stdlib.net.> <2147483647.1062322486@[10.0.1.61]> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2147483647.1062322486@[10.0.1.61]> User-Agent: Mutt/1.3.28i Sender: "Colm MacCarthaigh,,," X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sun, Aug 31, 2003 at 09:34:46AM -0700, Justin Erenkrantz wrote: > >Nope :) DNS servers don't even understand IPv4 addresses in that > >sense, you can't query a DNS server saying "give me the reverse > >of this IPv4 addresss", your resolver has to turn 209.237.227.195 > >into 195.227.237.209.in-addr.arpa for anything to happen. In the > >case of IPv6 there are two reverse zones it should be asking for, > >so for 2001:770:18:2:260:CFFF:FE20:F45C it should be asking for; > > Okay, now I know why IPv6 will never take off. This is total lameness. What do mean never take off ? It's taken off, it's here, in production! I could go on at length about this comment .. more seriously though, it might be time daedalus was acessible over IPv6 (imo). Just using 6to4 until a native feed could arrive. > Okay, I took your patch and added some autoconf-fu to try to detect this > case. The patch for sockaddr.c is great, works fine. The autoconf-fu needs some tweaks to work/compile :) ; Index: configure.in =================================================================== RCS file: /home/cvspublic/apr/configure.in,v retrieving revision 1.534 diff -u -r1.534 configure.in --- configure.in 31 Aug 2003 16:28:54 -0000 1.534 +++ configure.in 31 Aug 2003 17:44:13 -0000 @@ -894,6 +894,7 @@ APR_FLAG_HEADERS( alloca.h \ + assert.h \ ByteOrder.h \ conio.h \ crypt.h \ Index: build/apr_network.m4 =================================================================== RCS file: /home/cvspublic/apr/build/apr_network.m4,v retrieving revision 1.20 diff -u -r1.20 apr_network.m4 --- build/apr_network.m4 31 Aug 2003 16:28:55 -0000 1.20 +++ build/apr_network.m4 31 Aug 2003 17:44:16 -0000 @@ -164,6 +164,9 @@ #ifdef HAVE_NETINET_IN_H #include #endif +#ifdef HAVE_ASSERT_H +#include +#endif void main(void) { struct sockaddr_in6 sa = {0}; @@ -180,7 +183,7 @@ addr32 = (unsigned int *)&sa.sin6_addr; addr32[2] = htonl(0x0000FFFF); addr32[3] = ipv4.s_addr; - assert(IN6_IS_ADDR_V4MAPPED(&sin6.sin6_addr)); + assert(IN6_IS_ADDR_V4MAPPED(&sa.sin6_addr)); #ifdef SIN6_LEN sa.sin_len = sizeof(sa); -- Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net colm@stdlib.net http://www.stdlib.net/