Red Hat Bugzilla – Bug 446198
/usr/sbin/ss does not show all socket states
Last modified: 2010-05-14 05:17:51 EDT
Description of problem:
/usr/sbin/ss from the iproute2 package does not show all states
Version-Release number of selected component (if applicable):
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
The tcp state is not shown
ESTAB 0 0 <your ip>:<any port> <other host>:22
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.
Loading the tcp_diag.ko kernel module also solves the problem - which would
indicate that the parsing of /proc/net/tcp is the problem.
They starting use different parsing, which possibly fix also tcp issue.
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
I've tested the upstream patch (from iproute2-2.6.23), which fixed this issue.
Created attachment 310413 [details]
Parsing is using standart library
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.