Date: Wed, 26 Nov 1997 11:11:23 +1030 From: Mike Smith <mike@smith.net.au> To: Archie Cobbs <archie@whistle.com> Cc: hasty@rah.star-gate.com (Amancio Hasty), mike@smith.net.au, current@freefall.FreeBSD.org Subject: Re: tcp/ip buglet ? Message-ID: <199711260041.LAA01518@word.smith.net.au> In-Reply-To: Your message of "Tue, 25 Nov 1997 16:32:15 -0800." <199711260032.QAA03552@bubba.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > The port and address of addr are 0.... > > > > The linux layer call is : > > > > /sys/i386/linux/linux_socket.c:linux_sendto > > > > I am pretty sure that linux_sendto is correct. > > Not sure what the problem is here. However, I remember a similar > situation once a long time ago and the fix was to make sure that > the struct sockaddr_in was completely zeroed and the sa_len field > was properly set before doing the bind. The Linux sockaddr structure doesn't have an sa_len field; it gets fixed up via the compatability code in uipc_syscalls.s:getsockaddr(). If COMPAT_43 is missing from the kernel, this won't happen. (But AFAIK other things break at that point.) mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711260041.LAA01518>