[error] netlink_connector::receive_cbk received error message: 2 seq 3报错解决workaround

环境

 $ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

问题描述

vsomeip client端无法加入多播,此时在另一个窗口运行sudo tcpdump -i ens160后就加入多播成功了!【所以tcpdump解决了多播不能加入的问题!!!!workaround】

$ VSOMEIP_CONFIGURATION=./vsomeip-local_client.json VSOMEIP_APPLICATION_NAME=client-sample ./subscribe-sample
2023-05-14 20:01:30.247819 [warning] Reliability type for event [1234.5678.777] was not configured Using : RT_UNRELIABLE
2023-05-14 20:01:30.248681 [warning] Reliability type for event [1234.5678.778] was not configured Using : RT_UNRELIABLE
2023-05-14 20:01:30.248986 [warning] Reliability type for event [1234.5678.779] was not configured Using : RT_UNRELIABLE
2023-05-14 20:01:30.249949 [info] Parsed vsomeip configuration in 0ms
2023-05-14 20:01:30.250124 [info] Using configuration file: "./vsomeip-local_client.json".
2023-05-14 20:01:30.250266 [info] Configuration module loaded.
2023-05-14 20:01:30.250400 [info] Initializing vsomeip application "client-sample".
2023-05-14 20:01:30.251025 [info] Instantiating routing manager [Host].
2023-05-14 20:01:30.251433 [info] create_local_server Routing endpoint at .//vsomeip-0
2023-05-14 20:01:30.252142 [info] Service Discovery enabled. Trying to load module.
2023-05-14 20:01:30.254693 [info] Service Discovery module loaded.
2023-05-14 20:01:30.255117 [info] Application(client-sample, 1344) is initialized (11, 100).
Client settings [protocol=UDP]
2023-05-14 20:01:30.255554 [info] REGISTER EVENT(1344): [1234.5678.8778:is_provider=false]
2023-05-14 20:01:30.255800 [info] SUBSCRIBE(1344): [1234.5678.4465:ffff:0]
2023-05-14 20:01:30.255980 [info] notify_one_unlocked: Notifying 8778 to client 1344 failed. Event payload not set!
2023-05-14 20:01:30.256308 [info] Starting vsomeip application "client-sample" (1344) using 2 threads I/O nice 255
2023-05-14 20:01:30.257734 [info] main dispatch thread id from application: 1344 (client-sample) is: 7f8115cf3700 TID: 1864343
2023-05-14 20:01:30.257979 [info] shutdown thread id from application: 1344 (client-sample) is: 7f81154f2700 TID: 1864344
2023-05-14 20:01:30.259396 [info] Watchdog is disabled!
Service [1234.5678] is NOT available.
2023-05-14 20:01:30.260710 [info] REQUEST(1344): [1234.5678:255.4294967295]
2023-05-14 20:01:30.260990 [info] Avoid trigger SD find-service message for local service/instance/major/minor: 1234/5678/255/4294967295
2023-05-14 20:01:30.261052 [info] io thread id from application: 1344 (client-sample) is: 7f8115de8d40 TID: 1864342
2023-05-14 20:01:30.261245 [info] io thread id from application: 1344 (client-sample) is: 7f810ffff700 TID: 1864346
2023-05-14 20:01:30.261862 [info] Listening at .//vsomeip-1344
2023-05-14 20:01:30.272060 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:01:30.275049 [info] Network interface "ens160" state changed: up
2023-05-14 20:01:30.276134 [error] netlink_connector::receive_cbk received error message: 2 seq 3
2023-05-14 20:01:40.273607 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:01:50.275218 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:02:00.276334 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:02:10.278028 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:02:20.279232 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:02:30.280228 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:02:40.281587 [info] vSomeIP 3.1.20.3 | (default)
2023-05-14 20:02:48.554406 [warning] Network interface "ens160" state changed: up
2023-05-14 20:02:48.557933 [info] Route "default route (0.0.0.0/0) if: ens160 gw: 10.129.125.254" state changed: up
2023-05-14 20:02:48.558975 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992
2023-05-14 20:02:48.559307 [debug] Joining to multicast group 224.244.224.245 from 10.129.125.10
2023-05-14 20:02:48.559609 [info] udp_server_endpoint_impl: SO_RCVBUF (Multicast) is: 212992
2023-05-14 20:02:48.562490 [info] SOME/IP routing ready.
2023-05-14 20:02:48.309012 [info] udp_client_endpoint_impl::connect: SO_RCVBUF is: 212992
2023-05-14 20:02:48.310191 [warning] create_eventgroup_entry: Cannot create subscription as  local unreliable port is zero: [1234.5678.4465]
Service [1234.5678] is available.
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01a7] = (9) 00 01 02 03 04 05 06 07 08
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01a8] = (1) 00
2023-05-14 20:02:50.282714 [info] vSomeIP 3.1.20.3 | (default)
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01a9] = (2) 00 01
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01aa] = (3) 00 01 02
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01ab] = (4) 00 01 02 03
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01ac] = (5) 00 01 02 03 04
Received a notification for Event [1234.5678.0001] to Client/Session [1344/0001] = (5) 00 01 02 03 04
Received a notification for Event [1234.5678.8778] to Client/Session [0000/01ad] = (6) 00 01 02 03 04 05
Service [1234.5678] is NOT available.
2023-05-14 20:02:57.900878 [warning] Didn't receive a multicast SD message for 2200ms.
2023-05-14 20:02:57.901599 [debug] Leaving the multicast group 224.244.224.245 from 10.129.125.10
2023-05-14 20:02:57.904992 [debug] Joining to multicast group 224.244.224.245 from 10.129.125.10
2023-05-14 20:02:57.905577 [info] udp_server_endpoint_impl: SO_RCVBUF (Multicast) is: 212992

<完> 此是一个workaround 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值