All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>, mptcp@lists.linux.dev
Cc: Geliang Tang <tanggeliang@kylinos.cn>
Subject: Re: [PATCH mptcp-net] selftests: mptcp: userspace_pm: fix undefined variable port
Date: Tue, 21 Jul 2026 19:28:40 +0200	[thread overview]
Message-ID: <0a61cf2d-d0bb-4986-a2c2-a05ee046571c@kernel.org> (raw)
In-Reply-To: <24cb3786d7ce0e7bb1397ef14c98c78fd4a9ecb1.1782457344.git.tanggeliang@kylinos.cn>

Hi Geliang,

On 26/06/2026 09:04, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
> 
> In make_connection(), the variable "port" is used but never defined.
> This leads to an empty argument being passed to wait_local_port_listen(),
> causing "printf: : invalid number" errors:
> 
>  # INFO: Init
>  # 01 Created network namespaces ns1, ns2                          [ OK ]
>  # INFO: Make connections
>  # ./../lib.sh: line 651: printf: : invalid number
>  # 02 Established IPv4 MPTCP Connection ns2 => ns1                 [ OK ]
>  # INFO: Connection info: 10.0.1.2:59516 -> 10.0.1.1:50002
>  # ./../lib.sh: line 651: printf: : invalid number
>  # 03 Established IPv6 MPTCP Connection ns2 => ns1                 [ OK ]
> 
> Fix it by using the correctly defined variable "app_port", which holds the
> appropriate port number for the connection.

Thank you for the fix, and sorry for the delay!

Arf, I think remember I had this issue, and I thought I fixed it before
sending the patches, but no.

Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>

New patches for t/upstream-net and t/upstream:
- ebaa2571aeaa: selftests: mptcp: userspace_pm: fix undefined variable port
- Results: 4c2362a7db02..08c6392dbaf1 (export-net)
- Results: 4285a4fe811b..ea196b8ada26 (export)

Tests are now in progress:

- export-net:
https://github.com/multipath-tcp/mptcp_net-next/commit/1ef110cb2b759cde24642c71416460cd328469cf/checks
- export:
https://github.com/multipath-tcp/mptcp_net-next/commit/9d33b57982424bae6bd4e53ffe848dc8043fc2d8/checks

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


      parent reply	other threads:[~2026-07-21 17:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-26  7:04 [PATCH mptcp-net] selftests: mptcp: userspace_pm: fix undefined variable port Geliang Tang
2026-06-26  8:13 ` MPTCP CI
2026-07-21 17:28 ` Matthieu Baerts [this message]

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=0a61cf2d-d0bb-4986-a2c2-a05ee046571c@kernel.org \
    --to=matttbe@kernel.org \
    --cc=geliang@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=tanggeliang@kylinos.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.