From 04e5d64c454ec53103fa1f4b7f3634bb61a65d0f Mon Sep 17 00:00:00 2001 From: Marco Varlese Date: Fri, 23 Feb 2018 17:43:06 +0100 Subject: SCTP: fix connection memory corruption A bug was found when multiple SCTP connections were being opened to the same SCTP server. This patch addresses that problem, removing the use of the 'parent' pointer approach for sub-connection and saving instead within the sub-connection itself the ID representing its position. That facilitates pointer-arithmetic to be computed in the get_connection_from_transport(). Change-Id: Iaa1f4efc501590be1c93e42fd6fe3d6e02f635eb Signed-off-by: Marco Varlese --- test/test_sctp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_sctp.py b/test/test_sctp.py index a2f5e6a45da..32068abf76e 100644 --- a/test/test_sctp.py +++ b/test/test_sctp.py @@ -68,9 +68,10 @@ class TestSCTP(VppTestCase): self.logger.critical(error) self.assertEqual(error.find("failed"), -1) - error = self.vapi.cli("test echo client mbytes 10 appns 1" + + error = self.vapi.cli("test echo client nclients 2 mbytes 100" + + " appns 1" + " fifo-size 4" + - " no-output test-bytes syn-timeout 20 " + + " no-output test-bytes syn-timeout 3" + " uri " + uri) if error: self.logger.critical(error) -- cgit 1.2.3-korg