diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2024-03-01 19:18:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-03-04 14:07:46 +0100 |
commit | d32c8fb1c881478e4af8e6ac3c922d35c8ba3ca8 (patch) | |
tree | 68351234e541cbcfdd63a046c0f3441aee07f55d /net/6lowpan | |
parent | mptcp: add userspace_pm_lookup_addr_by_id helper (diff) | |
download | linux-d32c8fb1c881478e4af8e6ac3c922d35c8ba3ca8.tar.xz linux-d32c8fb1c881478e4af8e6ac3c922d35c8ba3ca8.zip |
mptcp: implement mptcp_userspace_pm_get_addr
This patch implements mptcp_userspace_pm_get_addr() to get an address
from userspace pm address list according the given 'token' and 'id'.
Use nla_get_u32() to get the u32 value of 'token', then pass it to
mptcp_token_get_sock() to get the msk. Pass 'msk' and 'id' to the helper
mptcp_userspace_pm_lookup_addr_by_id() to get the address entry. Put
this entry to userspace using mptcp_pm_nl_put_entry_info().
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/6lowpan')
0 files changed, 0 insertions, 0 deletions