DragonFly BSD
DragonFly bugs List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: sockstat aint workin'


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Thu, 28 Oct 2004 17:37:23 +0900

On Thu, Oct 28, 2004 at 10:19:28AM +0200, Erik P. Skaalerud wrote:
> sockstat is still fubar (it doesnt show proto).
> 
> Can anyone please fix this soon, as this is a very valuable tool to have 
> working :-)
> 
> Example (Notice that PROTO is zeroed):
> [root@dragon:~]$ sockstat -4
> USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
> postfix  smtpd    13830    6 0      *:25                  *:

Here you are :)

--- sockstat.orig	2004-10-16 18:12:21.000000000 +0900
+++ sockstat	2004-10-28 17:31:35.000000000 +0900
@@ -113,7 +113,7 @@
 	next if (!$listen && $nsd->[6] eq '*.*');
 	printf($inet_fmt, $fsd->[0], $fsd->[1], $fsd->[2],
 	       substr($fsd->[3], 0, -1),
-	       $nsd->[1], addr($nsd->[5]), addr($nsd->[6]));
+	       $nsd->[2], addr($nsd->[5]), addr($nsd->[6]));
     }
     print("\n");
 }



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]