From owner-freebsd-bugs Thu Feb 25 10:20:42 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id C22C314E51 for ; Thu, 25 Feb 1999 10:20:24 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id KAA24774; Thu, 25 Feb 1999 10:20:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from megaweapon.zigg.com (megaweapon.zigg.com [206.114.60.8]) by hub.freebsd.org (Postfix) with ESMTP id 76DC614D8F for ; Thu, 25 Feb 1999 06:55:16 -0800 (PST) (envelope-from matt@megaweapon.zigg.com) Received: (from matt@localhost) by megaweapon.zigg.com (8.9.2/8.9.2) id JAA20226; Thu, 25 Feb 1999 09:54:56 -0500 (EST) (envelope-from matt) Message-Id: <199902251454.JAA20226@megaweapon.zigg.com> Date: Thu, 25 Feb 1999 09:54:56 -0500 (EST) From: Matt Behrens Reply-To: matt@megaweapon.zigg.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/10262: fstat does not list PCBs for TCP connections, only UDP Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 10262 >Category: bin >Synopsis: fstat does not list PCBs for TCP connections, only UDP >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 25 10:20:08 PST 1999 >Closed-Date: >Last-Modified: >Originator: Matt Behrens >Release: FreeBSD 3.1-STABLE i386 >Organization: zigg.com >Environment: FreeBSD megaweapon.zigg.com 3.1-STABLE FreeBSD 3.1-STABLE #0: Thu Feb 18 10:11:10 EST 1999 root@:/usr/src/sys/compile/MEGAWEAPON i386 >Description: To determine which processes hold sockets listed in netstat, you would issue netstat -A to include PCBs along with the socket listings. You would then grep those PCBs out of an fstat listing. Since sometime in 3.0, I have not been able to do this for TCP sockets. 2.2.x accomplished this with no trouble. 3.x only seems to work for UDP sockets. >How-To-Repeat: $ netstat -Aa (select the PCB from an arbitrary TCP socket, and a UDP socket) $ fstat | grep (you will see nothing) $ fstat | grep (you will see the UDP socket owner's process info) >Fix: None known. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message