Skip to content

Commit

Permalink
Add multicast address to initial peer list when there are other stati…
Browse files Browse the repository at this point in the history
…c peers and SUBNET range

Signed-off-by: Shane Loretz <sloretz@google.com>
  • Loading branch information
sloretz committed Apr 4, 2023
1 parent cf9bf83 commit 9cec2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmw_fastrtps_shared_cpp/src/participant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ rmw_fastrtps_shared_cpp::create_participant(
RMW_AUTOMATIC_DISCOVERY_RANGE_SUBNET == discovery_options->automatic_discovery_range &&
domainParticipantQos.wire_protocol().builtin.initialPeersList.size())
{
// Need to add default the default multicast address
// Make sure we send an announcment on the multicast address
eprosima::fastrtps::rtps::Locator_t locator;
eprosima::fastrtps::rtps::IPLocator::setIPv4(locator, 239, 255, 0, 1);
domainParticipantQos.wire_protocol()
.builtin.metatrafficMulticastLocatorList.push_back(locator);
.builtin.initialPeersList.push_back(locator);
}

size_t length = snprintf(nullptr, 0, "enclave=%s;", enclave) + 1;
Expand Down

0 comments on commit 9cec2d6

Please sign in to comment.