Browse code

sctp: count rejects sent to the remote peer (stats)

It adds into sctp_handle_assoc_change() a call to
SCTP_STATS_LOCAL_REJECT() if the SCTP_ABORT is successfully sent.

Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org>

Libor Chocholaty authored on 21/10/2009 08:09:01
Showing 1 changed files
... ...
@@ -2149,6 +2149,8 @@ again:
2149 2149
 					WARN("failed to ABORT new sctp association %d (%s:%d):"
2150 2150
 							" %s (%d)\n", assoc_id, ip_addr2a(&ip),
2151 2151
 							su_getport(su), strerror(errno), errno);
2152
+				}else{
2153
+					SCTP_STATS_LOCAL_REJECT();
2152 2154
 				}
2153 2155
 			}
2154 2156
 			break;