Hi Geliang,
On 24/05/2024 08:48, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> If "setup_ns ns" is used in diag.sh, it fails with errors:
>
> ./mptcp_lib.sh: line 289: local: ns: readonly variable
Mmh, that's due to Bash not allowing local variables with the same name
as readonly ones. Maybe we can avoid using the "readonly" variable,
because we use 'ns' in many other helpers in mptcp_lib.sh, let me check
that, I will come back to you later.
> 13 ....chk 2 cestab [ OK ]
> 14 ....chk 2->0 msk in use after flush [ OK ]
>
> That is because "ns" is also a local variable in mptcp_lib_get_counter.
> To solve this, this patch renames it as "_ns".
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.