Subject: Re: problems with using getnameinfo()?
To: NetBSD Networking Technical Discussion List <tech-net@NetBSD.ORG>
From: Greg A. Woods <firstname.lastname@example.org>
Date: 05/07/2001 21:04:08
[ On Tuesday, May 8, 2001 at 10:14:03 (+0900), email@example.com wrote: ]
> Subject: Re: problems with using getnameinfo()?
> correct ones are like:
> sizeof(struct sockaddr)
> sizeof(struct sockaddr_in)
> sizeof(struct sockaddr_in6)
> you are (wrongly) using
> sizeof(struct in_addr)
> sizeof(struct in6_addr)
> and alike.
Ah! OK! Thanks very much! It works now!
(thought I had originally tried using sa.sa_len as the second argument,
but I must have had it incorrectly initialised at the time.....)
Greg A. Woods
+1 416 218-0098 VE3TCP <firstname.lastname@example.org> <email@example.com>
Planix, Inc. <firstname.lastname@example.org>; Secrets of the Weird <email@example.com>