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)
commit5e6af0a729b669b1da6f9600867e2e4910505a6d
tree3b036b03ebf2f591b3bf8ec5926ef498c780d157
parentb7f653b297a4b2ed16a11883044077e6bf3e3481
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