vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

Netlink send error : Invalid argument

Open hmluqman opened this issue 4 years ago • 4 comments
trafficstars

I am trying to build and run vsome IP basic examples on Ubuntu 20.05 in Widnows 10 as WSL. I follow the procedure describe in vsomeip in 10 minutes. I am following Availability section where one service is offered and client notifies if available.

The output at service side is

`2021-06-07 18:08:37.073496 [warning] Netlink send error : Invalid argument
2021-06-07 18:08:37.079674 [info] Network interface "n/a" state changed: up
2021-06-07 18:08:37.085017 [info] Route "n/a" state changed: up
2021-06-07 18:08:37.091796 [info] udp_server_endpoint_impl: SO_RCVBUF is: 163840
2021-06-07 18:08:37.102113 [info] udp_server_endpoint_impl: SO_RCVBUF (Multicast) is: 163840
2021-06-07 18:08:37.109820 [error] udp_server_endpoint_impl::join:set_option: Invalid argument
2021-06-07 18:08:37.116354 [info] Port configuration missing for [1234.5678]. Service is internal.
2021-06-07 18:08:37.121588 [info] SOME/IP routing ready.`

It does not able to detect network interface which should have been loopback, 'lo'. It is detecting as 'n/a'. Client does not know any service.

Same issue is reported here but it is closed without any solution

How can I solve this issue?

hmluqman avatar Jul 07 '21 16:07 hmluqman

The network confguration as well as the vsomeip configuration are needed to help here. However, does WSL support netlink at all?

lutzbichler avatar Jul 10 '21 14:07 lutzbichler

Have you managed to resolve this? I am facing the same issue.

fredani avatar Oct 11 '21 14:10 fredani

I solved it I am not sure but I think issue was, I was using WSL V1 i.e. it was not complete Kernel. I shifted to WSL V2 which is complete OS. That solved the issue. In case, that does not fix your issue, drop message here, I will look into my code.

hmluqman avatar Oct 11 '21 23:10 hmluqman

Thanks! Finally, I got it up n running!

fredani avatar Oct 13 '21 20:10 fredani