Bug 170077

Summary: netstat --inet -ap doesn't show all listening ports/processes
Product: Red Hat Enterprise Linux 4 Reporter: Dan Eisner <deisner>
Component: net-toolsAssignee: Radek Vokál <rvokal>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-07 08:37:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.