From owner-freebsd-current Tue Nov 25 00:32:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA25345 for current-outgoing; Tue, 25 Nov 1997 00:32:54 -0800 (PST) (envelope-from owner-freebsd-current) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA25333 for ; Tue, 25 Nov 1997 00:32:51 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.5) with ESMTP id AAA00315; Tue, 25 Nov 1997 00:32:43 -0800 (PST) Message-Id: <199711250832.AAA00315@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: Mike Smith cc: current@freefall.FreeBSD.org Subject: Re: tcp/ip buglet ? In-reply-to: Your message of "Tue, 25 Nov 1997 18:36:27 +1030." <199711250806.SAA00804@word.smith.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 25 Nov 1997 00:32:43 -0800 From: Amancio Hasty Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Per Mike's suggestion -- he asked to sprinkle with printfs the potential error returns in net and netinet . And the culprit is: int in_pcbladdr(inp, nam, plocal_sin) register struct inpcb *inp; struct sockaddr *nam; struct sockaddr_in **plocal_sin; { struct in_ifaddr *ia; register struct sockaddr_in *sin = (struct sockaddr_in *)nam; if (nam->sa_len != sizeof (*sin)) return (EINVAL); if (sin->sin_family != AF_INET) return (EAFNOSUPPORT); if (sin->sin_port == 0) { printf("in_pcbladdr \n"); printf("addr %x \n", sin->sin_addr.s_addr); return (EADDRNOTAVAIL); } The port and address field are 0. The system call was a sendto with port 29710 and address 127.0.0.1. Any clues? Tnks! Amancio