浏览代码

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 16 年之前
父节点
当前提交
d4ff27b77a
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;