Bug 170077 - netstat --inet -ap doesn't show all listening ports/processes
Summary: netstat --inet -ap doesn't show all listening ports/processes
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: net-tools
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Radek Vokál
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-07 00:48 UTC by Dan Eisner
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-07 08:37:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Eisner 2005-10-07 00:48:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

Description of problem:
This problem dates back a few versions, but I haven't opened a ticket until now. Basically, 'netstat --inet -ap' used to show all listening and open tcp and udp sockets. However, it now only shows a subset of the listening sockets. Compare:

netstat --inet -ap | grep '*'
versus
netstat -ap | grep '*'

The former doesn't show:
tcp        0      0 *:ssh                       *:*                         
while the latter does, although it doesn't seem specific to ssh.




Version-Release number of selected component (if applicable):
net-tools

How reproducible:
Always

Steps to Reproduce:
1. netstat --inet -ap
2. netstat -ap
3.
  

Actual Results:  there are more sockets listed in (2) than in (1).

Expected Results:  Both commands should show the same sockets listening.

Additional info:

Comment 3 Radek Vokál 2005-10-07 08:37:58 UTC
The output is correct. ssh is listed if you use also --inet6 option. 


Note You need to log in before you can comment on or make changes to this bug.