]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: fib_rule_tests: Add negative connect tests
authorIdo Schimmel <idosch@nvidia.com>
Wed, 14 Aug 2024 11:10:04 +0000 (14:10 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 18:04:51 +0000 (11:04 -0700)
commit53f88ed85bdd194b8a30605a264692b28a3ee665
treea3e4aeef0759ea64abdc216d10b3283aa0a0e707
parent9b6dcef32c2d8fe357592da5f6f52ef2edf1652d
selftests: fib_rule_tests: Add negative connect tests

The fib_rule{4,6}_connect tests verify that locally generated traffic
from a socket that specifies a DS Field using the IP_TOS / IPV6_TCLASS
socket options is correctly redirected using a FIB rule that matches on
the given DS Field.

Add negative tests to verify that the FIB rule is not hit when the
socket specifies a DS Field that differs from the one used by the FIB
rule.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20240814111005.955359-5-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_rule_tests.sh