diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-13 16:37:45 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-13 11:14:29 +0200 |
commit | 9fc476af6ebcef88e128fb681631c3a39243f4f2 (patch) | |
tree | e3fb032aaf752ddbc2bad7d01e14723a4730be67 /test/distro | |
parent | af9c98af5ffc7502c6292a36ffae4913b1ce9acf (diff) | |
download | passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.tar passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.tar.gz passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.tar.bz2 passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.tar.lz passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.tar.xz passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.tar.zst passt-9fc476af6ebcef88e128fb681631c3a39243f4f2.zip |
test: Simpler termination handling for UDP tests
Because UDP is connectionless we don't have an in-built end-of-stream
signal for our connectivity tests. We work around this by explicitly
adding an end marker to our sample data and killing the listening end once
it is seen.
However, socat has some built-in options - null-eof and shut-null - which
can be used to signal the end of stream with a zero-length UDP packet.
Use these to simplify how the UDP tests are implemented.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/distro')
0 files changed, 0 insertions, 0 deletions