From owner-freebsd-hackers Sun Feb 7 20:57:53 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA11662 for freebsd-hackers-outgoing; Sun, 7 Feb 1999 20:57:53 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bsd-daemon.net (bsd-daemon.net [209.90.150.171]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11657 for ; Sun, 7 Feb 1999 20:57:52 -0800 (PST) (envelope-from pjp@bsd-daemon.net) Received: from localhost (pjp@localhost) by bsd-daemon.net (8.9.1/8.9.1) with SMTP id XAA17781; Sun, 7 Feb 1999 23:56:39 -0500 (EST) Date: Sun, 7 Feb 1999 23:56:39 -0500 (EST) From: Peter Philipp To: Ruslan Ermilov cc: hackers@FreeBSD.ORG Subject: Re: Problems with fstat/netstat in 3.0-STABLE In-Reply-To: <19990204182141.B46126@ucb.crimea.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've seen exactly the same problem but with a 3.0-980804-SNAP, comparing this with a 3.0-980428-SNAP it works. So somewhere between those two snapshots it was broken and probably never noticed. I have found that the difference between the address is higher by 60 hex in an fstat as compared to a netstat -A. It seems it's still off by 60 hex in 3.0-RELEASE. Peter Philipp (PP2441) Daemonic Networks "In theory, theory is the same as practice, but not in practice" - ??? On Thu, 4 Feb 1999, Ruslan Ermilov wrote: > Hi! > > On 2.2.X I was able to do the following: > > # fstat -p 13612 > USER CMD PID FD MOUNT INUM MODE SZ|DV R/W > root telnetd 13612 wd / 2 drwxr-xr-x 512 r > root telnetd 13612 text /usr 61498 -r-xr-xr-x 49152 r > root telnetd 13612 0* internet stream tcp f0b79e00 > root telnetd 13612 1* internet stream tcp f0b79e00 > root telnetd 13612 2* internet stream tcp f0b79e00 > root telnetd 13612 3 / 524 crw-rw-rw- ptyp1 rw > > # netstat -Aan | grep f0b79e00 > f0b79e00 tcp 0 0 212.110.138.4.23 192.168.1.250.1030 ESTABLISHED > > > On 3.0-STABLE it doesn't work for TCP sockets (for udp it works). > Anyone's comments? > > -- > Ruslan Ermilov Sysadmin and DBA of the > ru@ucb.crimea.ua United Commercial Bank > +380.652.247.647 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message