diff options
author | Paolo Abeni <pabeni@redhat.com> | 2023-01-25 11:47:21 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-01-26 13:33:30 +0100 |
commit | b9d69db87fb77fc80997993d40f091b323b3651e (patch) | |
tree | 4ff7aeb4fe727c170e0ca1e5bf0b137c258c8d9b /net/mptcp/sockopt.c | |
parent | d0941130c93515411c8d66fc22bdae407b509a6d (diff) |
mptcp: let the in-kernel PM use mixed IPv4 and IPv6 addresses
Currently the in-kernel PM arbitrary enforces that created subflow's
family must match the main MPTCP socket while the RFC allows mixing
IPv4 and IPv6 subflows.
This patch changes the in-kernel PM logic to create subflows matching
the currently selected source (or destination) address. IPv4 sockets
can pick only IPv4 addresses (and v4 mapped in v6), while IPv6 sockets
not restricted to V6ONLY can pick either IPv4 and IPv6 addresses as
long as the source and destination matches.
A helper, previously introduced is used to ease family matching checks,
taking care of IPv4 vs IPv4-mapped-IPv6 vs IPv6 only addresses.
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/269
Co-developed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/mptcp/sockopt.c')
0 files changed, 0 insertions, 0 deletions