]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ovpn: add test for the FW mark feature
authorRalf Lici <ralf@mandelbit.com>
Wed, 19 Nov 2025 10:56:52 +0000 (11:56 +0100)
committerAntonio Quartulli <antonio@openvpn.net>
Tue, 17 Mar 2026 10:09:20 +0000 (11:09 +0100)
commit7b80d8a33500bd8ae5081c053f0447b502581d79
tree3c280f2b2866ad9c39e15ef11f7dc75586d9135e
parent367f4b163a8cff20d0cb06eb265a1bf1c6652bd9
selftests: ovpn: add test for the FW mark feature

Add a selftest to verify that the FW mark socket option is correctly
supported and its value propagated by ovpn.

The test adds and removes nftables DROP rules based on the mark value,
and checks that the rule counter aligns with the number of lost ping
packets.

Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: horms@kernel.org
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
tools/testing/selftests/net/ovpn/Makefile
tools/testing/selftests/net/ovpn/ovpn-cli.c
tools/testing/selftests/net/ovpn/test-mark.sh [new file with mode: 0755]