Subject: Re: problems with using getnameinfo()?
To: NetBSD Networking Technical Discussion List <tech-net@NetBSD.ORG>
From: Greg A. Woods <email@example.com>
Date: 05/07/2001 21:04:08
[ On Tuesday, May 8, 2001 at 10:14:03 (+0900), firstname.lastname@example.org 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 <email@example.com> <firstname.lastname@example.org>
Planix, Inc. <email@example.com>; Secrets of the Weird <firstname.lastname@example.org>