Exercise SO_RCVMARK and SO_RCVPRIORITY with zero values as well as the existing nonzero values, for both IPv4 and IPv6. These cases catch using the expected metadata value as the ancillary-message enable flag. With the new tests and the original listener, four of eight cases fail and the corrected script exits with status 1. With the fixed listener, all eight pass and the script exits with status 0. The original four cases also pass with the original listener. Verification used real UDP sockets in isolated network namespaces; discovery and testing were AI-assisted. No kernel instrumentation or fault injection was used. Signed-off-by: Jingjing Xu --- tools/testing/selftests/net/test_so_rcv.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/test_so_rcv.sh b/tools/testing/selftests/net/test_so_rcv.sh index ae01fa3c5329..3263ba2d1a67 100755 --- a/tools/testing/selftests/net/test_so_rcv.sh +++ b/tools/testing/selftests/net/test_so_rcv.sh @@ -11,6 +11,8 @@ FAILED_TESTS=0 declare -A TESTS=( ["SO_RCVPRIORITY"]="-P 2" ["SO_RCVMARK"]="-M 3" + ["SO_RCVPRIORITY_ZERO"]="-P 0" + ["SO_RCVMARK_ZERO"]="-M 0" ) check_result() { base-commit: 57f165ff2f30491bc3511d24a52ca516751a268b -- 2.53.0