From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 27 15:50:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7608A16A424; Fri, 27 Jan 2006 15:50:38 +0000 (GMT) (envelope-from lists@intricatesoftware.com) Received: from mta2.srv.hcvlny.cv.net (mta2.srv.hcvlny.cv.net [167.206.4.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CD3F43E4C; Fri, 27 Jan 2006 14:17:08 +0000 (GMT) (envelope-from lists@intricatesoftware.com) Received: from [172.16.1.72] (ool-457a77e8.dyn.optonline.net [69.122.119.232]) by mta2.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0ITR00EZO90JOP41@mta2.srv.hcvlny.cv.net>; Fri, 27 Jan 2006 09:17:08 -0500 (EST) Date: Fri, 27 Jan 2006 09:17:06 -0500 From: Kurt Miller In-reply-to: <43D9F8AD.2020502@shapeshifter.se> To: freebsd-hackers@freebsd.org Message-id: <200601270917.06842.lists@intricatesoftware.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Content-disposition: inline References: <200601262340.46999.lists@intricatesoftware.com> <43D9F8AD.2020502@shapeshifter.se> User-Agent: KMail/1.9 Cc: Fredrik Lindberg , Daniel Eischen Subject: Re: read hang on datagram socket X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 15:50:38 -0000 On Friday 27 January 2006 5:40 am, Fredrik Lindberg wrote: > Kurt Miller wrote: > > netstat output when stopping the program at the sendto call on 5.4 > > looks like this: > > udp4 0 0 localhost.55513 172.16.1.36.52099 > > > > on 6.0: > > udp4 0 0 172.16.1.37.53952 172.16.1.37.62241 > > > > Doesn't the above output indicate a problem with how datagram > > sockets are bound to INADDR_ANY? > > > > Perhaps its related to my configuration. Can anyone else with a > > 5.4-release system try the program to see if it works for them? > > > > It works on a 5.4-RELEASE-p5 system. > fli> ./test > no hang > > fli> ifconfig > em0: flags=8843 mtu 1500 > options=b > inet 212.XX.XX.XX netmask 0xfffffff8 broadcast 212.XX.XX.XX > inet6 fe80::240:d0ff:fe43:b964%em0 prefixlen 64 scopeid 0x1 > ether 00:40:d0:43:b9:64 > media: Ethernet autoselect (100baseTX ) > status: active > em1: flags=8802 mtu 1500 > options=b > ether 00:40:d0:43:b9:65 > media: Ethernet autoselect > status: no carrier > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > > Stopping it before sendto() gives > udp4 0 0 212.XX.XX.XX.54074 212.XX.XX.XX.56604 > Thanks for trying it out. I updated my kernel to p10 and the problem persists for me. I guess that makes the issue a configuration issue or a possibly a lnc driver issue. At the moment I can't think of anything in my configuration that is different for the 5-4 install. I'll work on trying a different nic next. -Kurt