Hi Geliang,
On 25/05/2024 15:01, Geliang Tang wrote:
> From: Geliang Tang <tanggeliang@kylinos.cn>
>
> mptcp_lib_ns_init may fail sometimes, then ns isn't setup correctly. In
> that case, cleanup is invoked, and ns is used in cleanup. So an "Invalid
> netns name ''" error occurs.
>
> For example, these errors occur when invalid name is set to setup_ns:
>
> Failed to setup namespace 'ns_temp': invalid name
> Invalid netns name ""
Mmh, I don't think this is needed: here, you explicitly caused the issue
by picking an invalid name. That's the only case where the 'ns' variable
will be not set. It should not fail with this error then.
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.