mptcp: pm nl: support IPv4 mapped in v6 addresses
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Mon, 25 Jan 2021 18:59:01 +0000 (10:59 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 00:53:52 +0000 (16:53 -0800)
commit7b9b0f7e1230adde95be4958469d60c6fc06bc36
treefcaba204bad20465dcafb6a226203fc2705dc539
parent50a13bc3945c9004cf418d181d55ec54cfe4c8ec
mptcp: pm nl: support IPv4 mapped in v6 addresses

On one side, we can allow the creation of subflows between v4 mapped in
v6 and v4 addresses. For that we look for v4mapped addresses between the
local address we want to select and the remote one.

On the other side, we also properly deal with received v4mapped
addresses, either announced ones or set via Netlink.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/122
Suggested-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Co-developed-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c