FC17 netstat does not report SCTP associations properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This issue appears to have been introduced with FC17 as it was working 
properly with FC16.

Basically, when listing SCTP associations via netstat (i.e. "netstat 
--sctp"), an error is displayed (see below).  Servers appear to be listed 
without issue - although that could just be due to the specific parameters 
of my application.  In any case, the servers and associations appear to be 
listed properly in /proc/net/sctp/eps and /proc/net/sctp/assocs, so 
presumably (?) the issue is just with netstat's interpretation of the data 
in /proc.

Example:

After starting an SCTP server:

the netstat output is correct:

[peter@peter ~]$ netstat -nap --sctp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.) 
Active Internet connections (servers and established) 
Proto Recv-Q Send-Q Local Address           Foreign Address         State  
    PID/Program name 
sctp       0      0 10.91.20.100:4105       0.0.0.0:*               LISTEN 
     1602/server


and it matches that in /proc:

[peter@peter ~]$ cat /proc/net/sctp/eps 
 ENDPT     SOCK   STY SST HBKT LPORT   UID INODE LADDRS 
ffff880222fdac00 ffff880221d504c0 2   10  9    4105   1000 27667 
10.91.20.100 10.91.10.100 
 
[peter@peter ~]$ cat /proc/net/sctp/assocs 
 ASSOC     SOCK   STY SST ST HBKT ASSOC-ID TX_QUEUE RX_QUEUE UID INODE 
LPORT RPORT LADDRS <-> RADDRS HBINT INS OUTS MAXRT T1X T2X RTXC



Whereas after an association is established by a client:

the netstat output reports an error where the two client lines would 
normally be output (2 lines due to 2 addresses on client side of 
association):

[peter@peter ~]$ netstat -nap --sctp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State  
    PID/Program name
sctp       0      0 10.91.20.100:4105       0.0.0.0:*               LISTEN 
     1602/server
SCTP error in line: 1
SCTP error in line: 2


the server entry matches that in /proc:

[peter@peter ~]$ cat /proc/net/sctp/eps
 ENDPT     SOCK   STY SST HBKT LPORT   UID INODE LADDRS
ffff880222fdac00 ffff880221d504c0 2   10  9    4105   1000 27667 
10.91.20.100 10.91.10.100


and the client entries are also reported in /proc:

[peter@peter ~]$ cat /proc/net/sctp/assocs
 ASSOC     SOCK   STY SST ST HBKT ASSOC-ID TX_QUEUE RX_QUEUE UID INODE 
LPORT RPORT LADDRS <-> RADDRS HBINT INS OUTS MAXRT T1X T2X RTXC
ffff880223e51000 ffff880222fd0000 2   1   3  6426    8        0        0  
1000 10777 4105   4106  10.91.20.100 10.91.10.100 <-> *10.91.0.100   30000 
   10    10    1    0    0        0
ffff880223e56800 ffff880221d50980 2   1   3  6681    7        0        0  
1000 27692 4106   4105  10.91.0.100 <-> *10.91.20.100 10.91.10.100   30000 
   10    10 59885    0    0        0

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux