face: Transport::getMtu
refs #3253
Change-Id: Ia4c5cfe210a99b798ce7d05f74ebdd7cfab214f4
diff --git a/daemon/face/multicast-udp-transport.cpp b/daemon/face/multicast-udp-transport.cpp
index 7befa78..a1f376b 100644
--- a/daemon/face/multicast-udp-transport.cpp
+++ b/daemon/face/multicast-udp-transport.cpp
@@ -24,6 +24,7 @@
*/
#include "multicast-udp-transport.hpp"
+#include "udp-protocol.hpp"
namespace nfd {
namespace face {
@@ -41,8 +42,10 @@
{
this->setLocalUri(FaceUri(localEndpoint));
this->setRemoteUri(FaceUri(multicastGroup));
+ this->setScope(ndn::nfd::FACE_SCOPE_NON_LOCAL);
this->setPersistency(ndn::nfd::FACE_PERSISTENCY_PERMANENT);
this->setLinkType(ndn::nfd::LINK_TYPE_MULTI_ACCESS);
+ this->setMtu(udp::computeMtu(localEndpoint));
NFD_LOG_FACE_INFO("Creating transport");
}