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

The fib_rule{4,6} tests verify the behavior of a given FIB rule selector
(e.g., dport, sport) by redirecting to a routing table with a default
route using a FIB rule with the given selector and checking that a route
lookup using the selector matches this default route.

Add negative tests to verify that a FIB rule is not hit when it should
not.

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