func_tests: Add test cases for interleaving and stream RE_CONFIG
cover func_tests: Add test cases for interleaving and stream RE_CONFIG
Add two test cases for verifying the support
for interleaving and re_config recently implemented in kernel.
Yuxuan Luo (2):
Add a test case for interleaving
Add a test cacse for RE_CONFIG
configure.ac | 3 + src/func_tests/.gitignore | 4 + src/func_tests/Makefile.am | 20 +++ src/func_tests/test_interleave.c | 254 +++++++++++++++++++++++++++++++ src/func_tests/test_re_conf.c | 251 ++++++++++++++++++++++++++++++ 5 files changed, 532 insertions(+) create mode 100644 src/func_tests/test_interleave.c create mode 100644 src/func_tests/test_re_conf.c
Signature · 1 line
2.37.1
PATCH 1/2 Add a test case for interleaving
Add a test case for verifying the support for user message interleave implemented in RFC8260.
This test case will not be built if the SCTP_FRAGMENT_INTERLEAVE declaration is not present and will skip if net.sctp.intl_enable is not set to 1.
--- configure.ac | 3 + src/func_tests/.gitignore | 2 + src/func_tests/Makefile.am | 10 ++ src/func_tests/test_interleave.c | 254 +++++++++++++++++++++++++++++++ 4 files changed, 269 insertions(+) create mode 100644 src/func_tests/test_interleave.c
configure.ac +3 -0
@@ -107,6 +107,9 @@ LKSCTP_CHECK_MEMBER([struct sctp_paddrparams.spp_ipv6_flowlabel], LKSCTP_CHECK_MEMBER([struct sctp_paddrparams.spp_dscp], [HAVE_SCTP_SPP_DSCP]) +# RFC 8260 (Message Interleaving) +LKSCTP_CHECK_DECL([SCTP_FRAGMENT_INTERLEAVE], [HAVE_SCTP_FRAGMENT_INTERLEAVE]) + AC_CONFIG_HEADERS([src/include/netinet/sctp.h]) AC_CONFIG_FILES([lksctp-tools.spec Makefile
src/func_tests/.gitignore +2 -0
@@ -28,6 +28,8 @@ test_getname test_getname_v6 test_inaddr_any test_inaddr_any_v6 +test_interleave +test_interleave_v6 test_peeloff test_peeloff_v6 test_recvmsg
src/func_tests/Makefile.am +10 -0
@@ -68,6 +68,13 @@ PASSING_V6_KERN_TESTS += \ test_sctp_sendvrecvv_v6 endif +if HAVE_SCTP_FRAGMENT_INTERLEAVE +PASSING_KERN_TESTS += \ + test_interleave +PASSING_V6_KERN_TESTS += \ + test_interleave_v6 +endif + noinst_PROGRAMS = ${PASSING_KERN_TESTS} ${PASSING_V6_KERN_TESTS} $(top_builddir)/src/lib/libsctp.la:
@@ -177,3 +184,6 @@ test_getname_v6_CFLAGS = ${V6FLAGS} test_tcp_style_v6_SOURCES = test_tcp_style.c test_tcp_style_v6_CFLAGS = ${V6FLAGS} + +test_interleave_v6_SOURCES = test_interleave.c +test_interleave_v6_CFLAGS = ${V6FLAGS}
src/func_tests/test_interleave.c new file +254 -0
254 lines not on this page · raw message
Signature · 1 line
2.37.1
PATCH 2/2 Add a test cacse for RE_CONFIG
In reply to Yuxuan LuoAdd a test case for verifying the support for stream re_config implemented in RFC6525.
This test case will not be built if the SCTP_RECONFIG_SUPPORTED declaration is not present and will abort if net.sctp.reconf_enable is not set to 1.
--- src/func_tests/.gitignore | 2 + src/func_tests/Makefile.am | 10 ++ src/func_tests/test_re_conf.c | 251 ++++++++++++++++++++++++++++++++++ 3 files changed, 263 insertions(+) create mode 100644 src/func_tests/test_re_conf.c
src/func_tests/.gitignore +2 -0
@@ -32,6 +32,8 @@ test_interleave test_interleave_v6 test_peeloff test_peeloff_v6 +test_re_conf +test_re_conf_v6 test_recvmsg test_sctp_sendrecvmsg test_sctp_sendrecvmsg_v6
src/func_tests/Makefile.am +10 -0
@@ -75,6 +75,13 @@ PASSING_V6_KERN_TESTS += \ test_interleave_v6 endif +if HAVE_SCTP_STREAM_RECONFIG +PASSING_KERN_TESTS += \ + test_re_conf +PASSING_V6_KERN_TESTS += \ + test_re_conf_v6 +endif + noinst_PROGRAMS = ${PASSING_KERN_TESTS} ${PASSING_V6_KERN_TESTS} $(top_builddir)/src/lib/libsctp.la:
@@ -187,3 +194,6 @@ test_tcp_style_v6_CFLAGS = ${V6FLAGS} test_interleave_v6_SOURCES = test_interleave.c test_interleave_v6_CFLAGS = ${V6FLAGS} + +test_re_conf_v6_SOURCES = test_re_conf.c +test_re_conf_v6_CFLAGS = ${V6FLAGS}
src/func_tests/test_re_conf.c new file +251 -0
251 lines not on this page · raw message
Signature · 1 line
2.37.1
Quoted 19 lines · Yuxuan Luo
Add two test cases for verifying the support
for interleaving andre_configrecently implemented in kernel.Signed-off-by Yuxuan Luo <[email protected]>Yuxuan Luo (2):
Add a test case for interleaving
Add a test cacse forRE_CONFIGconfigure.ac | 3 + src/func_tests/.gitignore | 4 + src/func_tests/Makefile.am | 20 +++ src/func_tests/test_interleave.c | 254 +++++++++++++++++++++++++++++++ src/func_tests/test_re_conf.c | 251 ++++++++++++++++++++++++++++++ 5 files changed, 532 insertions(+) create mode 100644 src/func_tests/test_interleave.c create mode 100644 src/func_tests/test_re_conf.c
Quoted 3 lines
--
2.37.1
Quoted 5 lines · Yuxuan Luo
Add two test cases for verifying the support
for interleaving andre_configrecently implemented in kernel.Signed-off-by Yuxuan Luo <[email protected]>
Applied. Thanks folks.
Marcelo