diff options
author | 2022-04-08 12:46:00 -0700 | |
---|---|---|
committer | 2022-04-11 11:55:53 +0100 | |
commit | 4fa39b701ce9be7ec2169f7fba4f8dc1a3b92aac (patch) | |
tree | 59915df358ffa19fd23115538a32f2c624572ffa /drivers/net/netdevsim/fib.c | |
parent | mptcp: remove locking in mptcp_diag_fill_info (diff) | |
download | wireguard-linux-4fa39b701ce9be7ec2169f7fba4f8dc1a3b92aac.tar.xz wireguard-linux-4fa39b701ce9be7ec2169f7fba4f8dc1a3b92aac.zip |
mptcp: listen diag dump support
makes 'ss -Ml' show mptcp listen sockets.
Iterate over the tcp listen sockets and pick those that have mptcp ulp
info attached.
mptcp_diag_get_info() is modified to prefer msk->first for mptcp sockets
in listen state. This reports accurate number for recv and send queue
(pending / max connection backlog counters).
Sample output:
ss -Mil
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 20 127.0.0.1:12000 0.0.0.0:*
subflows_max:2
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>
Diffstat (limited to 'drivers/net/netdevsim/fib.c')
0 files changed, 0 insertions, 0 deletions