Bug 445535

Summary: netstat displays incorrect sctp statistics
Product: Red Hat Enterprise Linux 5 Reporter: Steven Friedman <sfriedman>
Component: net-toolsAssignee: Jiri Popelka <jpopelka>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.1CC: cww, mpoole, pamadio, rvokal, tao, zprikryl
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-13 12:42:27 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
Patch which fixes displaying sctp statistics none

Description Steven Friedman 2008-05-07 13:49:32 UTC
Description of problem:
The results of 'netstat -an' show incorrect results for sctp connections.  I am
presuming that this is a bug in how lksctp sets the variables and not netstat in
reading the variables.


Version-Release number of selected component (if applicable):
lksctp-tools-1.0.6-1.el5.1
net-tools-1.60-73


How reproducible:
Every time.


Steps to Reproduce:
1. Open a one-to-one client sctp socket.
2. Type 'netstat -an'
3. Output shows faulty Recv-Q, Send-Q and IP addresses.
  
Actual results:
sctp   63488      1 0.0.128.0:17503         255.255.255.255:9877    ESTABLISHED


Expected results:
Correct values for all of the columns.


Additional info:

Comment 1 Zdenek Prikryl 2008-05-14 13:04:24 UTC
Hello,
it doesn't seem that it is a bug in lksctp, because lksctp uses standard bind(2)
function. Further, if you enable a debug mode, then every address is printed
correctly. So, it seems that the bug is either in netstat (net-tools) or in kernel.

Adding the maintainer of net-tools, so he can add his opinion.


Comment 2 Zdenek Prikryl 2008-06-18 08:09:56 UTC
This is not a bug in lksctp-tools, but in netstat.
Reassigning to right component.

Comment 3 Zdenek Prikryl 2008-06-19 06:51:17 UTC
Created attachment 309819 [details]
Patch which fixes displaying sctp statistics

This patch should fix displaying sctp statistics. Please try it and let me know
if it works.

Comment 4 Steven Friedman 2008-06-26 19:55:42 UTC
Works for me.

Comment 5 Radek Vokál 2008-07-08 06:38:24 UTC
Thanks for the patch, applied on net-tool-1.60-88 in rawhide.

Comment 9 RHEL Program Management 2010-08-09 18:15:22 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 11 RHEL Program Management 2011-01-11 20:08:12 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2011-01-11 23:08:53 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 14 RHEL Program Management 2011-05-31 13:27:23 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 15 Jiri Popelka 2011-07-13 12:42:27 UTC
Closing per comment #13.