From owner-freebsd-net@FreeBSD.ORG Fri Jun 27 18:33:31 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00C9F1065672 for ; Fri, 27 Jun 2008 18:33:31 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id D9AEC8FC17 for ; Fri, 27 Jun 2008 18:33:30 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 5AD7546BA9; Fri, 27 Jun 2008 14:33:30 -0400 (EDT) Date: Fri, 27 Jun 2008 19:33:30 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Eygene Ryabinkin In-Reply-To: Message-ID: <20080627193034.B32893@fledge.watson.org> References: <486283B0.3060805@transip.nl> <5A9ZR/wNTIFIXEvIi7qXj2foxBI@/2P5JkFFETcbMzHSQ1hIkFGHokc> <48648D70.50304@transip.nl> <4864E0FE.40708@gtcomm.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: net@freebsd.org, Ali Niknam , Paul Subject: Re: FreeBSD 7.0: sockets stuck in CLOSED state... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2008 18:33:31 -0000 On Fri, 27 Jun 2008, Eygene Ryabinkin wrote: > Paul, good day. > > Fri, Jun 27, 2008 at 08:45:50AM -0400, Paul wrote: >> I have the same 'problem' if that helps any.. Sockets stuck for over a >> month in CLOSED and they have a * for the port on the source IP. tcp4 0 0 >> 67.1.1.1.* 67.1.1.2.1261 CLOSED 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #6: >> Thu Apr 17 18:11:49 EDT 2008 amd64 Doesn't seem to cause any issues though. > > And what is listening to that port? Can you identify the application? Just > for the record -- may be it will narrow down the search list. > > Robert Watson told us today at the morning that he spotted the bug that lead > to the '*' instead of port number. Robert, can you post the patch -- it > seems to be not yet committed, at least cvs-src list has no signs of it? > > By the way, is the patch touches in_pcbdrop() in /sys/netinet/in_pcb.c, > removing instruction 'inp->inp_lport = 0;'? Hi Eygene, I've not yet had a chance to put the patch together; it does involve removing that line, but it's somewhat more complicated because inp_lport is used to signal whether or not the inpcb is still in various linked list. My current thinking is that I'd actually like to make it an explicit flag that indicates being on the lists so that we can have the port set non-zero yet no longer be on the lists (which would cause the closed connection to occupy the tuple). Robert N M Watson Computer Laboratory University of Cambridge