Explorar o código

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 <[email protected]>
Libor Chocholaty %!s(int64=16) %!d(string=hai) anos
pai
achega
d4ff27b77a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      sctp_server.c

+ 2 - 0
sctp_server.c

@@ -2149,6 +2149,8 @@ again:
 					WARN("failed to ABORT new sctp association %d (%s:%d):"
 							" %s (%d)\n", assoc_id, ip_addr2a(&ip),
 							su_getport(su), strerror(errno), errno);
+				}else{
+					SCTP_STATS_LOCAL_REJECT();
 				}
 			}
 			break;