Bug 446198

Summary: /usr/sbin/ss does not show all socket states
Product: Red Hat Enterprise Linux 5 Reporter: Tor Ake Fransson <tor-ake>
Component: iprouteAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: low    
Version: 5.1CC: mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 22:00:11 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:
Attachments:
Description Flags
Parsing is using standart library none

Description Tor Ake Fransson 2008-05-13 13:53:12 UTC
Description of problem:
/usr/sbin/ss from the iproute2 package does not show all states

Version-Release number of selected component (if applicable):
2.6.18-4

How reproducible:
Always

Steps to Reproduce:
1. Create a network connection to another host (e.g. telnet host 22)
2. Check for the ESTABLISHED state with /usr/sbin/ss -n
  
Actual results:
The tcp state is not shown

Expected results:
ESTAB 0 0 <your ip>:<any port> <other host>:22

Additional info:
Testing different versions of upstream iproute2 from
http://www.linux-foundation.org/en/Net:Iproute2, the problem is still present in
2.6.22 but disappears in 2.6.23. It is sufficient to replace the ss.c source
file in 2.6.18 to resolve the problem.

Comment 1 Tor Ake Fransson 2008-05-13 15:18:28 UTC
Loading the tcp_diag.ko kernel module also solves the problem - which would
indicate that the parsing of /proc/net/tcp is the problem.

Comment 2 Marcela Mašláňová 2008-05-14 08:55:27 UTC
They starting use different parsing, which possibly fix also tcp issue.

Comment 3 RHEL Program Management 2008-06-02 20:00:14 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 4 Marcela Mašláňová 2008-06-27 08:45:37 UTC
I've tested the upstream patch (from iproute2-2.6.23), which fixed this issue.

Comment 5 Marcela Mašláňová 2008-06-27 08:46:42 UTC
Created attachment 310413 [details]
Parsing is using standart library

Comment 10 errata-xmlrpc 2009-01-20 22:00:11 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0204.html