]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftest/net/ovpn: fix TCP socket creation
authorAntonio Quartulli <antonio@openvpn.net>
Tue, 20 May 2025 14:42:39 +0000 (16:42 +0200)
committerAntonio Quartulli <antonio@openvpn.net>
Tue, 3 Jun 2025 11:08:15 +0000 (13:08 +0200)
commitfdf4064aaebe4379e6d441141bed83d51b52ad04
treea38c86ab6c149a5cea7eee7d60dc60378d66bcf5
parenta6a5e87b3ee4cbf9c69a776565378c9b6a91dbfb
selftest/net/ovpn: fix TCP socket creation

TCP sockets cannot be created with AF_UNSPEC, but
one among the supported family must be used.

Since commit 944f8b6abab6 ("selftest/net/ovpn: extend
coverage with more test cases") the default address
family for all tests was changed from AF_INET to AF_UNSPEC,
thus breaking all TCP cases.

Restore AF_INET as default address family for TCP listeners.

Fixes: 944f8b6abab6 ("selftest/net/ovpn: extend coverage with more test cases")
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
tools/testing/selftests/net/ovpn/ovpn-cli.c