Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 41162 invoked from network); 2 Sep 2003 08:29:10 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Sep 2003 08:29:10 -0000 Received: (qmail 88917 invoked by uid 500); 2 Sep 2003 08:28:43 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 88880 invoked by uid 500); 2 Sep 2003 08:28:42 -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 88854 invoked from network); 2 Sep 2003 08:28:42 -0000 Date: Tue, 2 Sep 2003 09:28:46 +0100 From: Colm MacCarthaigh To: Justin Erenkrantz Cc: Joe Orton , dev@apr.apache.org Subject: Re: cvs commit: apr/network_io/unix sockaddr.c Message-ID: <20030902082846.GA29117@castlerea.stdlib.net.> Reply-To: colm@stdlib.net References: <20030831162855.59228.qmail@minotaur.apache.org> <20030901092106.GA27554@redhat.com> <1136.68.5.222.127.1062463305.squirrel@scotch.ics.uci.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1136.68.5.222.127.1062463305.squirrel@scotch.ics.uci.edu> 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 Mon, Sep 01, 2003 at 05:41:45PM -0700, Justin Erenkrantz wrote: > What are our options here? This exact same code appears in the > getnameinfo() check (APR_CHECK_WORKING_GETNAMEINFO). Yeah, but there sa is struct sockaddr_in. SIN6 is just a useful macro guaranteed to be defined on systems which even have a getnameinfo(). It has a one-to-one correspondence with the existence of sa.sin_len as per the RFC. In the APR_CHECK_GETNAMEINFO_IPV4_MAPPED code, sa is a struct sockaddr_in6. -- Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net colm@stdlib.net http://www.stdlib.net/