Hello Daniel,
On 7/19/24 17:14, Daniel Borkmann wrote:
On 7/16/24 12:13 PM, Alexis Lothoré (eBPF Foundation) wrote:
[...]
+ nstoken = open_netns(config[index].namespace); + if (!ASSERT_OK_PTR(nstoken, "switch to remote veth namespace")) + return -1; + interface = if_nametoindex(config[index].remote_veth); + if (!ASSERT_NEQ(interface, 0, "non zero interface index")) + return -1;
Missing `close_netns(nstoken);` in error path here, otherwise looks reasonable to me.
Ah yes, good catch, thanks. v4 incoming with the corresponding fix.
Thanks, Alexis