]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a85606c3234166410750807c61d7874812f80e8
treeb5c5b6396ae2b742bba38e333ff355165c39dcac
parentbecfade0991eb571fd5ffcb01dbccadc0fb266d3
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