Commit a086ee24 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

selftests: net: rename cmsg_so_mark

Rename the file in prep for generalization.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3ebb0b10
...@@ -35,4 +35,4 @@ test_unix_oob ...@@ -35,4 +35,4 @@ test_unix_oob
gro gro
ioam6_parser ioam6_parser
toeplitz toeplitz
cmsg_so_mark cmsg_sender
...@@ -52,7 +52,7 @@ TEST_GEN_FILES += gro ...@@ -52,7 +52,7 @@ TEST_GEN_FILES += gro
TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa TEST_GEN_PROGS = reuseport_bpf reuseport_bpf_cpu reuseport_bpf_numa
TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls TEST_GEN_PROGS += reuseport_dualstack reuseaddr_conflict tls
TEST_GEN_FILES += toeplitz TEST_GEN_FILES += toeplitz
TEST_GEN_FILES += cmsg_so_mark TEST_GEN_FILES += cmsg_sender
TEST_FILES := settings TEST_FILES := settings
......
...@@ -41,14 +41,14 @@ check_result() { ...@@ -41,14 +41,14 @@ check_result() {
fi fi
} }
ip netns exec $NS ./cmsg_so_mark $TGT4 1234 $((MARK + 1)) ip netns exec $NS ./cmsg_sender $TGT4 1234 $((MARK + 1))
check_result $? 0 "IPv4 pass" check_result $? 0 "IPv4 pass"
ip netns exec $NS ./cmsg_so_mark $TGT6 1234 $((MARK + 1)) ip netns exec $NS ./cmsg_sender $TGT6 1234 $((MARK + 1))
check_result $? 0 "IPv6 pass" check_result $? 0 "IPv6 pass"
ip netns exec $NS ./cmsg_so_mark $TGT4 1234 $MARK ip netns exec $NS ./cmsg_sender $TGT4 1234 $MARK
check_result $? 1 "IPv4 rejection" check_result $? 1 "IPv4 rejection"
ip netns exec $NS ./cmsg_so_mark $TGT6 1234 $MARK ip netns exec $NS ./cmsg_sender $TGT6 1234 $MARK
check_result $? 1 "IPv6 rejection" check_result $? 1 "IPv6 rejection"
# Summary # Summary
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment