selftest/net/ovpn: extend coverage with more test cases
authorAntonio Quartulli <antonio@openvpn.net>
Tue, 6 May 2025 13:01:00 +0000 (15:01 +0200)
committerAntonio Quartulli <antonio@openvpn.net>
Thu, 15 May 2025 11:09:36 +0000 (13:09 +0200)
commit944f8b6abab6a456254cf9617131144adac1a506
treed62e9386e515dbe12ef3ec2d16670c709db69e10
parent47e8e9d29eaae43abbb2e1ac202545249792f6f2
selftest/net/ovpn: extend coverage with more test cases

To increase code coverage, extend the ovpn selftests with the following
cases:
* connect UDP peers using a mix of IPv6 and IPv4 at the transport layer
* run full test with tunnel MTU equal to transport MTU (exercising
  IP layer fragmentation)
* ping "LAN IP" served by VPN peer ("LAN behind a client" test case)

Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
tools/testing/selftests/net/ovpn/Makefile
tools/testing/selftests/net/ovpn/common.sh
tools/testing/selftests/net/ovpn/ovpn-cli.c
tools/testing/selftests/net/ovpn/test.sh
tools/testing/selftests/net/ovpn/udp_peers.txt