selftests/mptcp: add diag listen tests
authorFlorian Westphal <fw@strlen.de>
Fri, 8 Apr 2022 19:46:01 +0000 (12:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 10:55:54 +0000 (11:55 +0100)
commitf2ae0fa68e28f53df245c0d9e4c7a7db6d58638d
tree37dbba7790d3f81d16052ec85f93d35107d0127c
parent4fa39b701ce9be7ec2169f7fba4f8dc1a3b92aac
selftests/mptcp: add diag listen tests

Check dumping of mptcp listener sockets:
1. filter by dport should not return any results
2. filter by sport should return listen sk
3. filter by saddr+sport should return listen sk
4. no filter should return listen sk

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/diag.sh