From baf740512aa6f3e8c81484b5e914b77200db21d9 Mon Sep 17 00:00:00 2001 From: Marco Varlese Date: Thu, 27 Sep 2018 11:58:34 +0200 Subject: SCTP: fix advanced debug output Change-Id: Ied63ebaec8e19189f8b1ab2a7f6d7474c3f2ad6e Signed-off-by: Marco Varlese --- src/vnet/sctp/sctp_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vnet/sctp') diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c index 0c865caa33d..33063e7ef21 100644 --- a/src/vnet/sctp/sctp_output.c +++ b/src/vnet/sctp/sctp_output.c @@ -1518,6 +1518,8 @@ sctp_data_retransmit (sctp_connection_t * sctp_conn) vlib_buffer_t *b = 0; u32 bi, n_bytes = 0; + u8 idx = sctp_data_subconn_select (sctp_conn); + SCTP_DBG_OUTPUT ("SCTP_CONN = %p, IDX = %u, S_INDEX = %u, C_INDEX = %u, sctp_conn->[...].LCL_PORT = %u, sctp_conn->[...].RMT_PORT = %u", sctp_conn, idx, sctp_conn->sub_conn[idx].connection.s_index, @@ -1530,8 +1532,6 @@ sctp_data_retransmit (sctp_connection_t * sctp_conn) return; } - u8 idx = sctp_data_subconn_select (sctp_conn); - n_bytes = sctp_prepare_data_retransmit (sctp_conn, idx, 0, sctp_conn->sub_conn[idx].cwnd, &b); -- cgit 1.2.3-korg