MPTCP Linux Development
 help / color / mirror / Atom feed
From: Mat Martineau <mathew.j.martineau at linux.intel.com>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [MPTCP][PATCH v2 mptcp-next 1/2] mptcp: convert IPv4 address to IPv4-mapped
Date: Thu, 17 Dec 2020 15:16:57 -0800	[thread overview]
Message-ID: <64ff69a4-642e-4058-cdeb-9c65145dcb67@linux.intel.com> (raw)
In-Reply-To: d3cbdcc0-4471-7a4d-1b1e-d69be80d231c@tessares.net

[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]

On Fri, 18 Dec 2020, Matthieu Baerts wrote:

> Hi Geliang, Mat,
>
> On 17/12/2020 01:23, Mat Martineau wrote:
>> On Wed, 16 Dec 2020, Geliang Tang wrote:
>> 
>>> Currently, PM doesn't create subflow with IPv4-mapped IPv6 socket. This
>>> patch converts the IPv4 address to IPv4-mapped IPv6 address to fix it.
>>> 
>>> Signed-off-by: Geliang Tang <geliangtang(a)gmail.com>
>>> ---
>>> net/mptcp/pm_netlink.c | 25 ++++++++++++++++++++++---
>>> 1 file changed, 22 insertions(+), 3 deletions(-)
>>> 
>>> diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
>>> index cc4ca013a06b..987e83cdee11 100644
>>> --- a/net/mptcp/pm_netlink.c
>>> +++ b/net/mptcp/pm_netlink.c
>>> @@ -145,6 +158,8 @@ select_local_address(const struct pm_nl_pernet 
>>> *pernet,
>>>         if (!(entry->addr.flags & MPTCP_PM_ADDR_FLAG_SUBFLOW))
>>>             continue;
>>> 
>>> +        mptcp_pm_addr_convert_v4mapped(msk, &entry->addr);
>>> +
>> 
>> This is modifying the contents of pernet->local_addr_list, not a copy of 
>> the entry, when the msk has a v4mapped address. I'm not sure that's the way 
>> to fix this, and might leave some corner cases unaddressed.
>> 
>> Did you look at modifying addresses_equal() so it can detect equivalent 
>> IPv4 and v4mapped addresses?
>
> Maybe something like that the patch I joined?
>
> I didn't try much but maybe more what we want?
>

I haven't tested it out, but yes, that's what I had in mind.

--
Mat Martineau
Intel

             reply	other threads:[~2020-12-17 23:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-17 23:16 Mat Martineau [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-19  8:51 [MPTCP] Re: [MPTCP][PATCH v2 mptcp-next 1/2] mptcp: convert IPv4 address to IPv4-mapped Matthieu Baerts
2020-12-18 11:27 Geliang Tang
2020-12-17 23:06 Matthieu Baerts
2020-12-17  0:23 Mat Martineau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64ff69a4-642e-4058-cdeb-9c65145dcb67@linux.intel.com \
    --to=mptcp@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox