]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp_connect: add SO_TIMESTAMPNS cmsg support
authorFlorian Westphal <fw@strlen.de>
Thu, 3 Jun 2021 23:24:33 +0000 (16:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:08:09 +0000 (14:08 -0700)
commit1f177d0321608f7fa44ff6a07c07a58df6335d4b
tree3b036b03ebf2f591b3bf8ec5926ef498c780d157
parent0dab97c7857182acba9507d01c811063b0bd6717
selftests: mptcp_connect: add SO_TIMESTAMPNS cmsg support

This extends the existing setsockopt test case to also check for cmsg
timestamps.

mptcp_connect will abort/fail if the setockopt was passed but the
timestamp cmsg isn't present after successful recvmsg().

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/mptcp_connect.c
tools/testing/selftests/net/mptcp/mptcp_sockopt.sh