diff options
author | Geliang Tang <geliangtang@gmail.com> | 2021-02-13 01:52:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-16 00:09:14 +0100 |
commit | 0caf3ada24e4623d4b2c938a5b6d2d09e4ccee18 (patch) | |
tree | 048784db9767372a5ba29ac677e7bfa8e74ee3ef /net/mptcp/mptcp_diag.c | |
parent | i40e: Fix incorrect argument in call to ipv6_addr_any() (diff) | |
download | linux-0caf3ada24e4623d4b2c938a5b6d2d09e4ccee18.tar.xz linux-0caf3ada24e4623d4b2c938a5b6d2d09e4ccee18.zip |
mptcp: add local addr info in mptcp_info
Add mptcpi_local_addr_used and mptcpi_local_addr_max in struct mptcp_info.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/mptcp_diag.c')
-rw-r--r-- | net/mptcp/mptcp_diag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mptcp/mptcp_diag.c b/net/mptcp/mptcp_diag.c index 00ed742f48a4..f16d9b5ee978 100644 --- a/net/mptcp/mptcp_diag.c +++ b/net/mptcp/mptcp_diag.c @@ -128,11 +128,13 @@ static void mptcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, info->mptcpi_subflows = READ_ONCE(msk->pm.subflows); info->mptcpi_add_addr_signal = READ_ONCE(msk->pm.add_addr_signaled); info->mptcpi_add_addr_accepted = READ_ONCE(msk->pm.add_addr_accepted); + info->mptcpi_local_addr_used = READ_ONCE(msk->pm.local_addr_used); info->mptcpi_subflows_max = mptcp_pm_get_subflows_max(msk); val = mptcp_pm_get_add_addr_signal_max(msk); info->mptcpi_add_addr_signal_max = val; val = mptcp_pm_get_add_addr_accept_max(msk); info->mptcpi_add_addr_accepted_max = val; + info->mptcpi_local_addr_max = mptcp_pm_get_local_addr_max(msk); if (test_bit(MPTCP_FALLBACK_DONE, &msk->flags)) flags |= MPTCP_INFO_FLAG_FALLBACK; if (READ_ONCE(msk->can_ack)) |