]> 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)
commit8ebd35df071b245d47d7c4a2485a6eea07e30bb1
tree3b036b03ebf2f591b3bf8ec5926ef498c780d157
parent3f9032782482c129512bf9c580d0ac3bc5344f4f
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