[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Openldap 2.0.1 release on FreeBSD 4.1 (server socket bind problem)



"Stig Venås" wrote:
> 
> I don't see how this relates to Fabrice's problem, but
> 
> On Wed, Sep 06, 2000 at 01:32:49PM +0200, Jonas Bulow wrote:
> > Hi!
> >
> > By changing line 912 in server/slapd/daemon.c to
> >
> >  peeraddr = inet_ntoa( *((struct in_addr *)
> > &from.sa_in6_addr.sin6_addr.__u6_addr.__u6_addr32[3]) );
> 
> so you're saying that
> 
> from.sa_in6_addr.sin6_addr.s6_addr32[3]
> 
> isn't defined?

>From my netinet6/in6.h I have:

#define s6_addr   __u6_addr.__u6_addr8
#ifdef _KERNEL  /*XXX nonstandard*/
#define s6_addr8  __u6_addr.__u6_addr8
#define s6_addr16 __u6_addr.__u6_addr16
#define s6_addr32 __u6_addr.__u6_addr32
#endif

> 
> I checked with RFC 2553 now, and it looks like it should be safe to use
> 
> from.sa_in6_addr.sin6_addr.s6_addr[12]
> 
> does that work for you?

Yes, that works and it is more beautifull than my solution! :-)