Red Hat Bugzilla – Bug 445535
netstat displays incorrect sctp statistics
Last modified: 2011-07-13 08:42:27 EDT
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):
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.
sctp 63488 1 0.0.128.0:17503 255.255.255.255:9877 ESTABLISHED
Correct values for all of the columns.
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.
This is not a bug in lksctp-tools, but in netstat.
Reassigning to right component.
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.
Works for me.
Thanks for the patch, applied on net-tool-1.60-88 in rawhide.
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.
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.
Closing per comment #13.