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