apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject Re: cvs commit: apr/network_io/unix sockaddr.c
Date Tue, 02 Sep 2003 08:28:46 GMT
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/

Mime
View raw message