tests: randomize port used in multicast transport tests
Change-Id: I6030317ad10cf6f3c81f29c2a3898b41a1982c0e
diff --git a/daemon/face/udp-protocol.hpp b/daemon/face/udp-protocol.hpp
index 1004c3c..11bf8ac 100644
--- a/daemon/face/udp-protocol.hpp
+++ b/daemon/face/udp-protocol.hpp
@@ -46,7 +46,7 @@
inline Endpoint
getDefaultMulticastGroup()
{
- return {boost::asio::ip::make_address_v4(0xE00017AA), 56363};
+ return {boost::asio::ip::address_v4(0xE00017AA), 56363};
}
/**
@@ -55,7 +55,8 @@
inline Endpoint
getDefaultMulticastGroupV6()
{
- return {boost::asio::ip::make_address_v6("FF02::1234"), 56363};
+ return {boost::asio::ip::address_v6({0xFF, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x34}), 56363};
}
} // namespace nfd::udp