On 6/11/07, Damien Miller <[EMAIL PROTECTED]> wrote:
...
The test program doesn't set sin_len. Try adding
"addr.sin_len = sizeof(addr);".

I don't believe that's necessary.  According to Stevens's "UNIX
Network Programming", the only time a user-space program needs to set
the sin_len member is when using routing sockets.  Indeed, an
examination of sys_connect(), sys_bind(), and sys_sendto() show that
they all use sockargs() to copy the supplied socket address into the
kernel address space and that routine sets the sin_len member to the
supplied length argument.


Philip Guenther

Reply via email to