Subject: Re: process name in netstat
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Andrew Doran <ad@netbsd.org>
List: tech-userlevel
Date: 08/25/2001 13:12:20
Emmanuel Dreyfus <manu@netbsd.org> wrote:

> It seems Solaris and Linux have a flag to get netstat displaying the
> process that owns each socket displayed. I wonder if this could be a
> wanted feature for NetBSD

fstat already does this:

amnesiac$ fstat | grep :22 
ad       ssh          229    3* internet stream tcp c08964ec 10.0.0.2:65533
<-> 155.53.1.253:22
root     sshd         165    3* internet stream tcp c0896168 *:22

Andrew