Date: Wed, 30 Aug 2000 13:13:50 +0300 From: Ruslan Ermilov <ru@sunbay.com> To: Dag-Erling Smorgrav <des@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/sockstat sockstat.pl Message-ID: <20000830131350.A63388@sunbay.com> In-Reply-To: <200008300918.CAA69367@freefall.freebsd.org>; from des@FreeBSD.org on Wed, Aug 30, 2000 at 02:18:20AM -0700 References: <200008300918.CAA69367@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii On Wed, Aug 30, 2000 at 02:18:20AM -0700, Dag-Erling Smorgrav wrote: > des 2000/08/30 02:18:20 PDT > > Modified files: > usr.bin/sockstat sockstat.pl > Log: > Invoke netstat(1) and fstat(1) with full path. > > Revision Changes Path > 1.7 +3 -3 src/usr.bin/sockstat/sockstat.pl > While we are on this topic, how about the following patch? It restores your surname and support for displaying "raw" IPv4 sockets (both were broken in rev 1.6). Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=koi8-r Content-Disposition: attachment; filename=p Content-Transfer-Encoding: quoted-printable Index: sockstat.pl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/usr.bin/sockstat/sockstat.pl,v retrieving revision 1.6 diff -u -p -r1.6 sockstat.pl --- sockstat.pl 2000/03/11 11:25:00 1.6 +++ sockstat.pl 2000/08/30 10:11:23 @@ -1,6 +1,6 @@ #!/usr/bin/perl5 #- -# Copyright (c) 1999 Dag-Erling Co=EFdan Sm=0Fgrav +# Copyright (c) 1999 Dag-Erling Co=EFdan Sm=F8rgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -56,7 +56,7 @@ open FSTAT, "fstat |" or die "'fstat' fa while (<FSTAT>) { ($user, $cmd, $pid, $fd, $inet, $type, $proto, $sock) =3D split; chop $fd; - next unless ($inet =3D~ m/^internet6?$/) && ($type ne "raw"); + next unless ($inet eq "internet") || ($inet eq "internet6") && ($type = ne "raw"); ($proto, $laddr, $faddr) =3D ($proto{$sock}, $myaddr{$sock}, $hisaddr{$sock}); write STDOUT; --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000830131350.A63388>