apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Collins-Sussman <suss...@newton.collab.net>
Subject Re: sockaddr.c problem
Date Thu, 14 Dec 2000 19:05:59 GMT

The patch works great.  Just committed it, if that's ok.  :)

Jeff Trawick <trawickj@bellsouth.net> writes:

> Ben Collins-Sussman <sussman@newton.collab.net> writes:
> 
> > After a CVS update and a clean build, I can't compile network_io on
> > either of my boxes (FreeBSD 4.0 and 4.1).  I know there's been quite a
> > bit of churn in sockaddr.c.  :)
> 
> Cool^H^H^H^HSorry!
> 
> Please try this patch and let me know how it goes...
> 
> Index: network_io/unix/sa_common.c
> ===================================================================
> RCS file: /home/cvspublic/apr/network_io/unix/sa_common.c,v
> retrieving revision 1.20
> diff -u -r1.20 sa_common.c
> --- network_io/unix/sa_common.c	2000/12/14 16:04:08	1.20
> +++ network_io/unix/sa_common.c	2000/12/14 18:15:23
> @@ -119,7 +119,7 @@
>                    sockaddr->addr_str_len);
>  #if APR_HAVE_IPV6
>      if (sockaddr->sa.sin.sin_family == AF_INET6 &&
> -        IN6_IS_ADDR_V4MAPPED(sockaddr->ipaddr_ptr)) {
> +        IN6_IS_ADDR_V4MAPPED((struct in6_addr *)sockaddr->ipaddr_ptr)) {
>          /* This is an IPv4-mapped IPv6 address; drop the leading
>           * part of the address string so we're left with the familiar
>           * IPv4 format.
> 
> 
> -- 
> Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
>        http://www.geocities.com/SiliconValley/Park/9289/
>              Born in Roswell... married an alien...

Mime
View raw message