Bug 446198 - /usr/sbin/ss does not show all socket states
Summary: /usr/sbin/ss does not show all socket states
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: iproute
Version: 5.1
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Marcela Mašláňová
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-13 13:53 UTC by Tor Ake Fransson
Modified: 2010-05-14 09:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 22:00:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Parsing is using standart library (10.14 KB, patch)
2008-06-27 08:46 UTC, Marcela Mašláňová
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0204 0 normal SHIPPED_LIVE iproute bug fix and enhancement update 2009-01-20 16:06:11 UTC

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


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