From owner-freebsd-questions Sat Mar 4 22: 3:37 2000 Delivered-To: freebsd-questions@freebsd.org Received: from team7.cba.ualr.edu (team7.cba.ualr.edu [144.167.120.24]) by hub.freebsd.org (Postfix) with ESMTP id A4A9037B979 for ; Sat, 4 Mar 2000 22:03:33 -0800 (PST) (envelope-from joe@team7.cba.ualr.edu) Received: from access92.mod1.ualr.edu (access92.mod1.ualr.edu [144.167.7.92]) by team7.cba.ualr.edu (8.9.3/8.9.3) with ESMTP id AAA14669; Sun, 5 Mar 2000 00:03:28 -0600 (CST) (envelope-from joe@team7.cba.ualr.edu) Date: Sun, 5 Mar 2000 00:03:29 -0600 (CST) From: Joe X-Sender: joe@njal.ualr.edu To: Dan Nelson Cc: freebsd-questions@freebsd.org Subject: Re: sockstat not reporting all In-Reply-To: <20000304204815.A87662@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 4 Mar 2000, Dan Nelson wrote: > > Hm. The socket address looks real funny for a 32-bit pointer. Whoops. > You're on an alpha :) The next step would be to run "fstat | grep > internet" and see if the last column looks anything like the first > column in the netstat output above. sockstat ties the two sets of > output together with those columns. > bash-2.03$ netstat -Aan -finet Active Internet connections (including servers) Socket Proto Recv-Q Send-Q Local Address Foreign Address (state) fffffe00062547e0 tcp4 0 20 144.167.120.24.22 144.167.7.92.1022 ESTABLISHED fffffe0006271200 tcp4 0 0 144.167.120.24.22 144.167.7.92.1023 ESTABLISHED team7# fstat | grep internet root sshd1 14580 5* internet stream tcp 62547e0 root sshd1 14552 5* internet stream tcp 6271200 Well, they match except, as you pointed out, that netstat shows a 64-bit pointer and fstat shows as 32-bit. Just for grins I ran "perl -w sockstat.pl" and I got the following messages: bash-2.03$ perl -w sockstat.pl USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS Use of uninitialized value at sockstat.pl line 40, chunk 34. Use of uninitialized value at sockstat.pl line 40, chunk 34. Use of uninitialized value at sockstat.pl line 40, chunk 34. root sshd1 14580 5 Do you think I found the problem? -Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message