> On Tue, 7 Sep 1999, Cathryn Mataga http://junglevision.com wrote:
>
> > Yeah, I've been looking at the kernel source, and I'm trying to figure
...
> Ha! Thanks Cathryn, I think you found it!
>
> It seems the interface to getname has changed a bit. From that code I
> deduce that &len is now supposed be _filled_in_ by sock->ops->getname().
> At least inet_getname() does that. And it's now move_addr_to_user() that
> handles truncating the address struct if needed.
>
> Now it should only be a matter of a small adjustment to ax25_getname(),
> nr_getname() and rose_getname() and we are back to business...
Yes, that's it!
I have commented out "if (*uaddr_len > sizeof (struct full_sockaddr_ax25))"
in ax25_getname() and sockaddr gets filled just right. It seems that in my
case nanosecond count in select() was in memory on the place where *uaddr_len
got allocated.
Many thanks for help!
Jan