Content-Type: multipart/mixed; boundary="===============6103032589248205235==" MIME-Version: 1.0 From: Matthieu Baerts To: mptcp at lists.01.org Subject: [MPTCP] [PATCH 3/3] mptcp:basic: check for v6 family Date: Wed, 16 Oct 2019 18:15:28 +0200 Message-ID: <20191016161528.4336-4-matthieu.baerts@tessares.net> In-Reply-To: 20191016161528.4336-1-matthieu.baerts@tessares.net X-Status: X-Keywords: X-UID: 2184 --===============6103032589248205235== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Instead of by default taking IPv6 if it is not v4. I don't know exactly what are the recommendations about that but it seems we can often see code checking 'if v4' then 'else if v6', not checking 'if v4' then 'else it is v6'. Anyway, that's a detail, more to know what we should do next time in this situation :) Signed-off-by: Matthieu Baerts --- Notes: To squash in "mptcp: Implement basic path manager" net/mptcp/basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mptcp/basic.c b/net/mptcp/basic.c index 5520aae3a6e7..4710607a3fc2 100644 --- a/net/mptcp/basic.c +++ b/net/mptcp/basic.c @@ -218,7 +218,7 @@ static void create_subflow_worker(struct work_struct *w= ork) else if (pm->local_family =3D=3D AF_INET) mptcp_pm_create_subflow(pm->token, pm->remote_id, NULL); #if IS_ENABLED(CONFIG_IPV6) - else + else if (pm->local_family =3D=3D AF_INET6) mptcp_pm_create_subflow6(pm->token, pm->remote_id, NULL); #endif = -- = 2.20.1 --===============6103032589248205235==--