Module: sip-router
Branch: sr_3.0
Commit: d4ff27b77a4d54be6be4cb45c7ccf0756a9f316a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d4ff27b…
Author: Libor Chocholaty <libor(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Oct 21 10:09:01 2009 +0200
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(a)iptel.org>
---
sctp_server.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sctp_server.c b/sctp_server.c
index 9fa2b56..b86bbf3 100644
--- a/sctp_server.c
+++ b/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;