Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a default ipv6 address for multicast #1959

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/cpp/rtps/transport/UDPv6Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ static asio::ip::address_v6::bytes_type locator_to_native(
IPLocator::getIPv6(locator)[12],
IPLocator::getIPv6(locator)[13],
IPLocator::getIPv6(locator)[14],
IPLocator::getIPv6(locator)[15] } };
IPLocator::getIPv6(locator)[15] }
};
}

UDPv6Transport::UDPv6Transport(
Expand Down Expand Up @@ -140,7 +141,7 @@ bool UDPv6Transport::getDefaultMetatrafficMulticastLocators(
Locator locator;
locator.kind = LOCATOR_KIND_UDPv6;
locator.port = static_cast<uint16_t>(metatraffic_multicast_port);
IPLocator::setIPv6(locator, "ff31::8000:1234");
IPLocator::setIPv6(locator, "ff1e::ffff:efff:1");
locators.push_back(locator);
return true;
}
Expand Down Expand Up @@ -202,7 +203,7 @@ void UDPv6Transport::AddDefaultOutputLocator(
{
// TODO What is the default IPv6 address?
Locator temp;
IPLocator::createLocator(LOCATOR_KIND_UDPv6, "239.255.0.1", 0, temp);
IPLocator::createLocator(LOCATOR_KIND_UDPv6, "ff1e::ffff:efff:1", 0, temp);
defaultList.push_back(temp);
}

Expand Down