linux/net/mptcp
Kishen Maloor 4638de5aef mptcp: handle local addrs announced by userspace PMs
This change adds an internal function to store/retrieve local
addrs announced by userspace PM implementations to/from its kernel
context. The function addresses the requirements of three scenarios:
1) ADD_ADDR announcements (which require that a local id be
provided), 2) retrieving the local id associated with an address,
and also where one may need to be assigned, and 3) reissuance of
ADD_ADDRs when there's a successful match of addr/id.

The list of all stored local addr entries is held under the
MPTCP sock structure. Memory for these entries is allocated from
the sock option buffer, so the list of addrs is bounded by optmem_max.
The list if not released via REMOVE_ADDR signals is ultimately
freed when the sock is destructed.

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Kishen Maloor <kishen.maloor@intel.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-05-04 10:49:31 +01:00
..
crypto.c kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
crypto_test.c
ctrl.c mptcp: Add a per-namespace sysctl to set the default path manager type 2022-04-29 17:25:14 -07:00
diag.c
Kconfig kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
Makefile mptcp: handle local addrs announced by userspace PMs 2022-05-04 10:49:31 +01:00
mib.c mptcp: add mib for infinite map sending 2022-04-23 11:51:05 +01:00
mib.h mptcp: add mib for infinite map sending 2022-04-23 11:51:05 +01:00
mptcp_diag.c mptcp: listen diag dump support 2022-04-11 11:55:53 +01:00
options.c mptcp: establish subflows from either end of connection 2022-05-03 16:54:55 -07:00
pm.c mptcp: handle local addrs announced by userspace PMs 2022-05-04 10:49:31 +01:00
pm_netlink.c mptcp: handle local addrs announced by userspace PMs 2022-05-04 10:49:31 +01:00
pm_userspace.c mptcp: handle local addrs announced by userspace PMs 2022-05-04 10:49:31 +01:00
protocol.c mptcp: handle local addrs announced by userspace PMs 2022-05-04 10:49:31 +01:00
protocol.h mptcp: handle local addrs announced by userspace PMs 2022-05-04 10:49:31 +01:00
sockopt.c mptcp: remove locking in mptcp_diag_fill_info 2022-04-11 11:55:53 +01:00
subflow.c mptcp: store remote id from MP_JOIN SYN/ACK in local ctx 2022-05-03 16:54:54 -07:00
syncookies.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00
token.c mptcp: full disconnect implementation 2022-01-07 11:27:06 +00:00
token_test.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00