[RFC net-next 2/2] selftests: net: Test prohibit when oif specified
From: liamsmith827
Date: Sun Oct 18 2026 - 23:25:27 EST
From: liamsmith827 <liamsmith827@xxxxxxxxx>
Now that prohibit is honored when oif is specified, enable the existing
test that expects an interface-bound ping to fail.
Signed-off-by: liamsmith827 <liamsmith827@xxxxxxxxx>
---
tools/testing/selftests/net/fcnal-test.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/tools/testing/selftests/net/fcnal-test.sh b/tools/testing/selftests/net/fcnal-test.sh
index a50609535fed..7eb4dc0311a9 100755
--- a/tools/testing/selftests/net/fcnal-test.sh
+++ b/tools/testing/selftests/net/fcnal-test.sh
@@ -643,10 +643,9 @@ ipv4_ping_novrf()
run_cmd ping -c1 -w1 ${a}
log_test_addr ${a} $? 2 "ping out, blocked by rule"
- # NOTE: ipv4 actually allows the lookup to fail and yet still create
- # a viable rtable if the oif (e.g., bind to device) is set, so this
- # case succeeds despite the rule
- # run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
+ log_start
+ run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a}
+ log_test_addr ${a} $? 2 "ping out, device bind, blocked by rule"
a=${NSA_LO_IP}
log_start
--
2.47.3