selftests: tls: add test for peeking past a record of a different type
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 15 Feb 2024 16:17:33 +0000 (17:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Feb 2024 22:25:52 +0000 (14:25 -0800)
commit2bf6172632e1d4a6ec7ee7e734d53a43a145f5c6
treecfc173402dd5dcb9f8823bb508263a3fa41c124c
parent7b2a4c2a623a9f9c5fd9cff499bb9457fa2192ec
selftests: tls: add test for peeking past a record of a different type

If we queue 3 records:
 - record 1, type DATA
 - record 2, some other type
 - record 3, type DATA
the current code can look past the 2nd record and merge the 2 data
records.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/4623550f8617c239581030c13402d3262f2bd14f.1708007371.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c