FC17 netstat does not report SCTP associations properly

Peter Butler PButler at pt.com
Wed May 30 18:01:29 UTC 2012


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 at 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 at 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 at 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 at 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 at 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 at 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



More information about the users mailing list