Interesting. Is it really necessary to zero out sockaddr/sockaddr_in before using it? I see that some sources do it, and some don't. I was always under the impression that, as long as you fill the relevant members (sin_family, sin_addr, sin_port), other initialization is not necessary. Was I mistaken, or is this something specific to FreeBSD?
Do others have experience with this?
e.g. look at http://cvs.tartarus.org/putty/unix/uxnet.c
putty encountered the very same problem ...
regards manfred