#277466 net-tools: netstat -ap confused by '/' in process command line

Package:
net-tools
Source:
net-tools
Description:
NET-3 networking toolkit
Submitter:
Laurent Bonnaud
Date:
2014-08-05 08:09:18 UTC
Severity:
normal
#277466#5
Date:
2004-10-20 07:58:13 UTC
From:
To:
Hi,

when I run "netstat -ap" on my system, I get the following output:

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
[...]
tcp        0      0 localhost:6010          *:*                     LISTEN     19288/16
tcp6       0      0 ip6-localhost:6010      *:*                     LISTEN     19288/16

netstat displays "16" instead of a valid program name.  The program is
in fact sshd that opens a socket for X11 clients that should be
forwarded to the remote display.  "ps aux" gives the following output:

root     19288  0.0  0.1  6316  904 ?        Ss   Oct17   0:00 sshd: root@pts/16

So it seems that netstat is confused by the '/' in the sshd command
line.

#277466#12
Date:
2009-09-08 23:10:45 UTC
From:
To:
Still occurs:

tcp     0     0 127.0.0.1:6010      0.0.0.0:*        LISTEN 0       3396      1266/0
tcp     0     0 127.0.0.1:6011      0.0.0.0:*        LISTEN 0       22019     4262/2
tcp     0     0 127.0.0.1:6012      0.0.0.0:*        LISTEN 0       91736     14759/1