selftests: mptcp: check IP_TOS in/out are the same
authorFlorian Westphal <fw@strlen.de>
Fri, 3 Dec 2021 22:35:38 +0000 (14:35 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Dec 2021 19:36:30 +0000 (11:36 -0800)
commitedb596e80cee8f9cab4c37907c8004456e5b3581
treeb5c5b6396ae2b742bba38e333ff355165c39dcac
parent3b1e21eb60e8d4aa42474fed606a8ea8767b0120
selftests: mptcp: check IP_TOS in/out are the same

Check that getsockopt(IP_TOS) returns what setsockopt(IP_TOS) did set
right before.

Also check that socklen_t == 0 and -1 input values match those
of normal tcp sockets.

Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_sockopt.c