vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

[BUG]: Find Service with multicast enabled, vsomeip stack always send unicast offer service

Open SarbeenaS opened this issue 1 year ago • 1 comments

vSomeip Version

v3.4.10

Boost Version

1.76

Environment

Ubuntu and Android

Describe the bug

Find Service with multicast enabled, vsomeip stack always send unicast offer service Find_Unicast

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response

SarbeenaS avatar Aug 13 '24 11:08 SarbeenaS

Below two changes are done in service_discovery_impl class,

image (9)

  1. In send_uni_or_multicast_offerservice() function, send_multicast_offer_service(_info) is added if unicast_flag comes with value 0

  2. In send_multicast_offer_service function, serialize_and_send() is modified to accept sd_multicast_address_ as address param.

And it is working for us. i.e. OFFER() is sent over multicast when FIND() is triggered with UNICAST flag set as 0

vidz12 avatar Aug 22 '24 11:08 vidz12