summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/sctp/sctp_output.c2
-rw-r--r--test/test_sctp.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c
index e69ff5c1529..08640a44311 100644
--- a/src/vnet/sctp/sctp_output.c
+++ b/src/vnet/sctp/sctp_output.c
@@ -1378,8 +1378,6 @@ sctp_push_hdr_i (sctp_connection_t * sctp_conn, vlib_buffer_t * b,
u16 bytes_to_add = sizeof (sctp_payload_data_chunk_t);
u16 chunk_length = data_len + bytes_to_add - sizeof (sctp_header_t);
- bytes_to_add += vnet_sctp_calculate_padding (bytes_to_add + data_len);
-
sctp_payload_data_chunk_t *data_chunk =
vlib_buffer_push_uninit (b, bytes_to_add);
diff --git a/test/test_sctp.py b/test/test_sctp.py
index f77b9dc7a48..4d04aa06828 100644
--- a/test/test_sctp.py
+++ b/test/test_sctp.py
@@ -68,7 +68,7 @@ class TestSCTP(VppTestCase):
self.logger.critical(error)
self.assertEqual(error.find("failed"), -1)
- error = self.vapi.cli("test echo client mbytes 1" +
+ error = self.vapi.cli("test echo client mbytes 10" +
" appns 1" +
" fifo-size 4" +
" no-output test-bytes syn-timeout 3" +