vsomeip
vsomeip copied to clipboard
The version in the Find messages might be wrong
trafficstars
When inspecting with Wireshark, my OFFER messages contain the proper version, but my FIND messages do not.
e.g.
Offer Service Entry (Service ID 0x0602, Instance ID 0x5679, Version: 1.0)
Find Service Entry (Service ID 0x0602, Instance ID 0x5679, Version: 1.4294967295)
It doesn't seem to matter. The client knows the interface version is actually 1.0, as proxy_->getInterfaceVersion()* is a Version(1,0), and the routing manager will still connect these two. But it's still suspicious.
* In addition, in the generated code, my test_service.hpp has:
45:CommonAPI::Version test_service::getInterfaceVersion() {
46: return CommonAPI::Version(1, 0);
and in test_serviceSomeIPProxy.cpp I have
125:void test_serviceSomeIPProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
126: ownVersionMajor = 1;
127: ownVersionMinor = 0;
Basically the version is right everywhere in the code.