From owner-freebsd-current Tue Nov 25 16:46:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA23036 for current-outgoing; Tue, 25 Nov 1997 16:46:18 -0800 (PST) (envelope-from owner-freebsd-current) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA23018 for ; Tue, 25 Nov 1997 16:46:13 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id LAA01518; Wed, 26 Nov 1997 11:11:24 +1030 (CST) Message-Id: <199711260041.LAA01518@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Archie Cobbs cc: hasty@rah.star-gate.com (Amancio Hasty), mike@smith.net.au, current@freefall.FreeBSD.org Subject: Re: tcp/ip buglet ? In-reply-to: Your message of "Tue, 25 Nov 1997 16:32:15 -0800." <199711260032.QAA03552@bubba.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 26 Nov 1997 11:11:23 +1030 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > 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