Skip to content

Commit 6afc1e4

Browse files
Set a default ipv6 address for multicast (#1959)
* Set a good default ipv6 address Signed-off-by: Ryan Friedman <[email protected]> * Linters Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
1 parent bf4bf7b commit 6afc1e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cpp/rtps/transport/UDPv6Transport.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ static asio::ip::address_v6::bytes_type locator_to_native(
9191
IPLocator::getIPv6(locator)[12],
9292
IPLocator::getIPv6(locator)[13],
9393
IPLocator::getIPv6(locator)[14],
94-
IPLocator::getIPv6(locator)[15] } };
94+
IPLocator::getIPv6(locator)[15] }
95+
};
9596
}
9697

9798
UDPv6Transport::UDPv6Transport(
@@ -140,7 +141,7 @@ bool UDPv6Transport::getDefaultMetatrafficMulticastLocators(
140141
Locator locator;
141142
locator.kind = LOCATOR_KIND_UDPv6;
142143
locator.port = static_cast<uint16_t>(metatraffic_multicast_port);
143-
IPLocator::setIPv6(locator, "ff31::8000:1234");
144+
IPLocator::setIPv6(locator, "ff1e::ffff:efff:1");
144145
locators.push_back(locator);
145146
return true;
146147
}
@@ -202,7 +203,7 @@ void UDPv6Transport::AddDefaultOutputLocator(
202203
{
203204
// TODO What is the default IPv6 address?
204205
Locator temp;
205-
IPLocator::createLocator(LOCATOR_KIND_UDPv6, "239.255.0.1", 0, temp);
206+
IPLocator::createLocator(LOCATOR_KIND_UDPv6, "ff1e::ffff:efff:1", 0, temp);
206207
defaultList.push_back(temp);
207208
}
208209

0 commit comments

Comments
 (0)