Date: Sun, 5 Mar 2000 00:03:29 -0600 (CST) From: Joe <joe@team7.cba.ualr.edu> To: Dan Nelson <dnelson@emsphone.com> Cc: freebsd-questions@freebsd.org Subject: Re: sockstat not reporting all Message-ID: <Pine.BSF.4.10.10003042328140.362-100000@njal.ualr.edu> In-Reply-To: <20000304204815.A87662@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, <FSTAT> chunk 34. Use of uninitialized value at sockstat.pl line 40, <FSTAT> chunk 34. Use of uninitialized value at sockstat.pl line 40, <FSTAT> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10003042328140.362-100000>