blob: c9cab22b12bfb9d917a1b1d690ae97974328c2c2 [file] [log] [blame]
Giulio Grassi624f6c62014-02-18 19:42:14 +01001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Junxiao Shi2d491752017-07-14 21:32:05 +00002/*
Junxiao Shi64d99f22017-01-21 23:06:36 +00003 * Copyright (c) 2014-2017, Regents of the University of California,
Alexander Afanasyev319f2c82015-01-07 14:56:53 -08004 * Arizona Board of Regents,
5 * Colorado State University,
6 * University Pierre & Marie Curie, Sorbonne University,
7 * Washington University in St. Louis,
8 * Beijing Institute of Technology,
9 * The University of Memphis.
Alexander Afanasyev9bcbc7c2014-04-06 19:37:37 -070010 *
11 * This file is part of NFD (Named Data Networking Forwarding Daemon).
12 * See AUTHORS.md for complete list of NFD authors and contributors.
13 *
14 * NFD is free software: you can redistribute it and/or modify it under the terms
15 * of the GNU General Public License as published by the Free Software Foundation,
16 * either version 3 of the License, or (at your option) any later version.
17 *
18 * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
19 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20 * PURPOSE. See the GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License along with
23 * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Steve DiBenedettoef04f272014-06-04 14:28:31 -060024 */
Giulio Grassi624f6c62014-02-18 19:42:14 +010025
26#include "udp-factory.hpp"
Yukai Tu0a49d342015-09-13 12:54:22 +080027#include "generic-link-service.hpp"
Yukai Tu0a49d342015-09-13 12:54:22 +080028#include "multicast-udp-transport.hpp"
Giulio Grassi624f6c62014-02-18 19:42:14 +010029#include "core/global-io.hpp"
Yanbiao Liafb20592017-08-03 16:20:46 -070030
31#include <ndn-cxx/net/address-converter.hpp>
Davide Pesaventobb734df2017-10-24 18:05:36 -040032#include <boost/range/adaptor/map.hpp>
Junxiao Shi64d99f22017-01-21 23:06:36 +000033#include <boost/range/algorithm/copy.hpp>
Giulio Grassi624f6c62014-02-18 19:42:14 +010034
35namespace nfd {
Junxiao Shi64d99f22017-01-21 23:06:36 +000036namespace face {
Giulio Grassi624f6c62014-02-18 19:42:14 +010037
Davide Pesavento1d7e7af2015-10-10 23:54:08 +020038namespace ip = boost::asio::ip;
Davide Pesaventobb734df2017-10-24 18:05:36 -040039namespace net = ndn::net;
Junxiao Shi79494162014-04-02 18:25:11 -070040
Giulio Grassi624f6c62014-02-18 19:42:14 +010041NFD_LOG_INIT("UdpFactory");
Junxiao Shib47247d2017-01-24 15:09:16 +000042NFD_REGISTER_PROTOCOL_FACTORY(UdpFactory);
43
44const std::string&
45UdpFactory::getId()
46{
47 static std::string id("udp");
48 return id;
49}
50
Junxiao Shi0ba6d642017-07-17 00:53:22 +000051UdpFactory::UdpFactory(const CtorParams& params)
52 : ProtocolFactory(params)
53{
Junxiao Shibbace1d2017-08-06 20:03:37 +000054 m_netifAddConn = netmon->onInterfaceAdded.connect(bind(&UdpFactory::applyMcastConfigToNetif, this, _1));
Junxiao Shi0ba6d642017-07-17 00:53:22 +000055}
Giulio Grassi624f6c62014-02-18 19:42:14 +010056
Steve DiBenedettoca53ac62014-03-27 19:58:40 -060057void
Junxiao Shi64d99f22017-01-21 23:06:36 +000058UdpFactory::processConfig(OptionalConfigSection configSection,
59 FaceSystem::ConfigContext& context)
60{
61 // udp
62 // {
63 // port 6363
64 // enable_v4 yes
65 // enable_v6 yes
66 // idle_timeout 600
67 // keep_alive_interval 25 ; acceptable but ignored
68 // mcast yes
69 // mcast_group 224.0.23.170
70 // mcast_port 56363
Teng Liangfe4fce32017-03-29 04:49:38 +000071 // mcast_ad_hoc no
Junxiao Shic31080d2017-01-24 15:10:12 +000072 // whitelist
73 // {
74 // *
75 // }
76 // blacklist
77 // {
78 // }
Junxiao Shi64d99f22017-01-21 23:06:36 +000079 // }
80
81 uint16_t port = 6363;
82 bool enableV4 = false;
83 bool enableV6 = false;
84 uint32_t idleTimeout = 600;
85 MulticastConfig mcastConfig;
86
87 if (configSection) {
88 // These default to 'yes' but only if face_system.udp section is present
89 enableV4 = enableV6 = mcastConfig.isEnabled = true;
90
91 for (const auto& pair : *configSection) {
92 const std::string& key = pair.first;
93 const ConfigSection& value = pair.second;
94
95 if (key == "port") {
96 port = ConfigFile::parseNumber<uint16_t>(pair, "face_system.udp");
97 }
98 else if (key == "enable_v4") {
99 enableV4 = ConfigFile::parseYesNo(pair, "face_system.udp");
100 }
101 else if (key == "enable_v6") {
102 enableV6 = ConfigFile::parseYesNo(pair, "face_system.udp");
103 }
104 else if (key == "idle_timeout") {
105 idleTimeout = ConfigFile::parseNumber<uint32_t>(pair, "face_system.udp");
106 }
107 else if (key == "keep_alive_interval") {
108 // ignored
109 }
110 else if (key == "mcast") {
111 mcastConfig.isEnabled = ConfigFile::parseYesNo(pair, "face_system.udp");
112 }
113 else if (key == "mcast_group") {
114 const std::string& valueStr = value.get_value<std::string>();
115 boost::system::error_code ec;
Davide Pesaventobb734df2017-10-24 18:05:36 -0400116 mcastConfig.group.address(ip::address_v4::from_string(valueStr, ec));
Junxiao Shi64d99f22017-01-21 23:06:36 +0000117 if (ec) {
118 BOOST_THROW_EXCEPTION(ConfigFile::Error("face_system.udp.mcast_group: '" +
119 valueStr + "' cannot be parsed as an IPv4 address"));
120 }
121 else if (!mcastConfig.group.address().is_multicast()) {
122 BOOST_THROW_EXCEPTION(ConfigFile::Error("face_system.udp.mcast_group: '" +
123 valueStr + "' is not a multicast address"));
124 }
125 }
126 else if (key == "mcast_port") {
127 mcastConfig.group.port(ConfigFile::parseNumber<uint16_t>(pair, "face_system.udp"));
128 }
Teng Liangfe4fce32017-03-29 04:49:38 +0000129 else if (key == "mcast_ad_hoc") {
130 bool wantAdHoc = ConfigFile::parseYesNo(pair, "face_system.udp");
131 mcastConfig.linkType = wantAdHoc ? ndn::nfd::LINK_TYPE_AD_HOC : ndn::nfd::LINK_TYPE_MULTI_ACCESS;
132 }
Junxiao Shic31080d2017-01-24 15:10:12 +0000133 else if (key == "whitelist") {
134 mcastConfig.netifPredicate.parseWhitelist(value);
135 }
136 else if (key == "blacklist") {
137 mcastConfig.netifPredicate.parseBlacklist(value);
138 }
Junxiao Shi64d99f22017-01-21 23:06:36 +0000139 else {
140 BOOST_THROW_EXCEPTION(ConfigFile::Error("Unrecognized option face_system.udp." + key));
141 }
142 }
143
144 if (!enableV4 && !enableV6 && !mcastConfig.isEnabled) {
145 BOOST_THROW_EXCEPTION(ConfigFile::Error(
146 "IPv4 and IPv6 UDP channels and UDP multicast have been disabled. "
147 "Remove face_system.udp section to disable UDP channels or enable at least one of them."));
148 }
149 }
150
Junxiao Shi79a92082017-08-08 02:40:59 +0000151 if (context.isDryRun) {
152 return;
Junxiao Shi64d99f22017-01-21 23:06:36 +0000153 }
Junxiao Shi79a92082017-08-08 02:40:59 +0000154
155 if (enableV4) {
156 udp::Endpoint endpoint(ip::udp::v4(), port);
157 shared_ptr<UdpChannel> v4Channel = this->createChannel(endpoint, time::seconds(idleTimeout));
158 if (!v4Channel->isListening()) {
159 v4Channel->listen(this->addFace, nullptr);
160 }
161 providedSchemes.insert("udp");
162 providedSchemes.insert("udp4");
163 }
164 else if (providedSchemes.count("udp4") > 0) {
165 NFD_LOG_WARN("Cannot close udp4 channel after its creation");
166 }
167
168 if (enableV6) {
169 udp::Endpoint endpoint(ip::udp::v6(), port);
170 shared_ptr<UdpChannel> v6Channel = this->createChannel(endpoint, time::seconds(idleTimeout));
171 if (!v6Channel->isListening()) {
172 v6Channel->listen(this->addFace, nullptr);
173 }
174 providedSchemes.insert("udp");
175 providedSchemes.insert("udp6");
176 }
177 else if (providedSchemes.count("udp6") > 0) {
178 NFD_LOG_WARN("Cannot close udp6 channel after its creation");
179 }
180
181 if (m_mcastConfig.isEnabled != mcastConfig.isEnabled) {
182 if (mcastConfig.isEnabled) {
183 NFD_LOG_INFO("enabling multicast on " << mcastConfig.group);
184 }
185 else {
186 NFD_LOG_INFO("disabling multicast");
187 }
188 }
189 else if (mcastConfig.isEnabled) {
190 if (m_mcastConfig.linkType != mcastConfig.linkType && !m_mcastFaces.empty()) {
191 NFD_LOG_WARN("Cannot change ad hoc setting on existing faces");
192 }
193 if (m_mcastConfig.group != mcastConfig.group) {
194 NFD_LOG_INFO("changing multicast group from " << m_mcastConfig.group <<
195 " to " << mcastConfig.group);
196 }
197 if (m_mcastConfig.netifPredicate != mcastConfig.netifPredicate) {
198 NFD_LOG_INFO("changing whitelist/blacklist");
199 }
200 }
201
202 // Even if there's no configuration change, we still need to re-apply configuration because
203 // netifs may have changed.
204 m_mcastConfig = mcastConfig;
205 this->applyMcastConfig(context);
Junxiao Shi64d99f22017-01-21 23:06:36 +0000206}
207
208void
Eric Newberry944f38b2017-07-20 20:54:22 -0400209UdpFactory::createFace(const CreateFaceParams& params,
Junxiao Shi64d99f22017-01-21 23:06:36 +0000210 const FaceCreatedCallback& onCreated,
211 const FaceCreationFailedCallback& onFailure)
212{
Eric Newberry944f38b2017-07-20 20:54:22 -0400213 BOOST_ASSERT(params.remoteUri.isCanonical());
Eric Newberry78e32b02017-04-01 14:34:44 +0000214
Eric Newberry944f38b2017-07-20 20:54:22 -0400215 if (params.localUri) {
Eric Newberry78e32b02017-04-01 14:34:44 +0000216 NFD_LOG_TRACE("Cannot create unicast UDP face with LocalUri");
217 onFailure(406, "Unicast UDP faces cannot be created with a LocalUri");
218 return;
219 }
Junxiao Shi64d99f22017-01-21 23:06:36 +0000220
Eric Newberry944f38b2017-07-20 20:54:22 -0400221 if (params.persistency == ndn::nfd::FACE_PERSISTENCY_ON_DEMAND) {
Junxiao Shi64d99f22017-01-21 23:06:36 +0000222 NFD_LOG_TRACE("createFace does not support FACE_PERSISTENCY_ON_DEMAND");
Davide Pesavento46afec42017-05-28 14:28:47 -0400223 onFailure(406, "Outgoing UDP faces do not support on-demand persistency");
Junxiao Shi64d99f22017-01-21 23:06:36 +0000224 return;
225 }
226
Yanbiao Liafb20592017-08-03 16:20:46 -0700227 udp::Endpoint endpoint(ndn::ip::addressFromString(params.remoteUri.getHost()),
Eric Newberry944f38b2017-07-20 20:54:22 -0400228 boost::lexical_cast<uint16_t>(params.remoteUri.getPort()));
Junxiao Shi64d99f22017-01-21 23:06:36 +0000229
230 if (endpoint.address().is_multicast()) {
231 NFD_LOG_TRACE("createFace does not support multicast faces");
232 onFailure(406, "Cannot create multicast UDP faces");
233 return;
234 }
235
Eric Newberry2642cd22017-07-13 21:34:53 -0400236 if (params.wantLocalFields) {
Junxiao Shi64d99f22017-01-21 23:06:36 +0000237 // UDP faces are never local
238 NFD_LOG_TRACE("createFace cannot create non-local face with local fields enabled");
239 onFailure(406, "Local fields can only be enabled on faces with local scope");
240 return;
241 }
242
243 // very simple logic for now
244 for (const auto& i : m_channels) {
245 if ((i.first.address().is_v4() && endpoint.address().is_v4()) ||
246 (i.first.address().is_v6() && endpoint.address().is_v6())) {
Eric Newberry2642cd22017-07-13 21:34:53 -0400247 i.second->connect(endpoint, params.persistency, params.wantLpReliability,
248 onCreated, onFailure);
Junxiao Shi64d99f22017-01-21 23:06:36 +0000249 return;
250 }
251 }
252
Davide Pesavento46afec42017-05-28 14:28:47 -0400253 NFD_LOG_TRACE("No channels available to connect to " << endpoint);
Junxiao Shi64d99f22017-01-21 23:06:36 +0000254 onFailure(504, "No channels available to connect");
255}
256
Giulio Grassi624f6c62014-02-18 19:42:14 +0100257shared_ptr<UdpChannel>
Davide Pesavento46afec42017-05-28 14:28:47 -0400258UdpFactory::createChannel(const udp::Endpoint& localEndpoint,
259 time::nanoseconds idleTimeout)
Giulio Grassi624f6c62014-02-18 19:42:14 +0100260{
Davide Pesavento46afec42017-05-28 14:28:47 -0400261 auto it = m_channels.find(localEndpoint);
262 if (it != m_channels.end())
263 return it->second;
Giulio Grassi624f6c62014-02-18 19:42:14 +0100264
Davide Pesavento46afec42017-05-28 14:28:47 -0400265 if (localEndpoint.address().is_multicast()) {
Davide Pesavento1d7e7af2015-10-10 23:54:08 +0200266 BOOST_THROW_EXCEPTION(Error("createChannel is only for unicast channels. The provided endpoint "
267 "is multicast. Use createMulticastFace to create a multicast face"));
268 }
269
Yukai Tu0a49d342015-09-13 12:54:22 +0800270 // check if the endpoint is already used by a multicast face
Davide Pesavento46afec42017-05-28 14:28:47 -0400271 if (m_mcastFaces.find(localEndpoint) != m_mcastFaces.end()) {
Spyridon Mastorakis149e02c2015-07-27 13:22:22 -0700272 BOOST_THROW_EXCEPTION(Error("Cannot create the requested UDP unicast channel, local "
273 "endpoint is already allocated for a UDP multicast face"));
Yukai Tu0a49d342015-09-13 12:54:22 +0800274 }
Junxiao Shi79494162014-04-02 18:25:11 -0700275
Davide Pesavento46afec42017-05-28 14:28:47 -0400276 auto channel = std::make_shared<UdpChannel>(localEndpoint, idleTimeout);
277 m_channels[localEndpoint] = channel;
Davide Pesavento46afec42017-05-28 14:28:47 -0400278
Giulio Grassi624f6c62014-02-18 19:42:14 +0100279 return channel;
280}
281
Junxiao Shi64d99f22017-01-21 23:06:36 +0000282std::vector<shared_ptr<const Channel>>
283UdpFactory::getChannels() const
284{
285 return getChannelsFromMap(m_channels);
286}
287
Junxiao Shicde37ad2015-12-24 01:02:05 -0700288shared_ptr<Face>
Giulio Grassi624f6c62014-02-18 19:42:14 +0100289UdpFactory::createMulticastFace(const udp::Endpoint& localEndpoint,
Giulio Grassi6d7176d2014-04-16 16:08:48 +0200290 const udp::Endpoint& multicastEndpoint,
Davide Pesavento8215a3a2017-12-25 19:14:33 -0500291 const shared_ptr<const ndn::net::NetworkInterface>& netif)
Giulio Grassi624f6c62014-02-18 19:42:14 +0100292{
Davide Pesaventobb734df2017-10-24 18:05:36 -0400293 BOOST_ASSERT(multicastEndpoint.address().is_multicast());
294 BOOST_ASSERT(localEndpoint.port() == multicastEndpoint.port());
295
296 // check if the local and multicast endpoints are already in use for a multicast face
Davide Pesavento46afec42017-05-28 14:28:47 -0400297 auto it = m_mcastFaces.find(localEndpoint);
298 if (it != m_mcastFaces.end()) {
299 if (it->second->getRemoteUri() == FaceUri(multicastEndpoint))
300 return it->second;
Giulio Grassi624f6c62014-02-18 19:42:14 +0100301 else
Spyridon Mastorakis149e02c2015-07-27 13:22:22 -0700302 BOOST_THROW_EXCEPTION(Error("Cannot create the requested UDP multicast face, local "
303 "endpoint is already allocated for a UDP multicast face "
304 "on a different multicast group"));
Giulio Grassi624f6c62014-02-18 19:42:14 +0100305 }
Junxiao Shi79494162014-04-02 18:25:11 -0700306
Davide Pesaventobb734df2017-10-24 18:05:36 -0400307 // check if the local endpoint is already used by a unicast channel
Davide Pesavento46afec42017-05-28 14:28:47 -0400308 if (m_channels.find(localEndpoint) != m_channels.end()) {
Spyridon Mastorakis149e02c2015-07-27 13:22:22 -0700309 BOOST_THROW_EXCEPTION(Error("Cannot create the requested UDP multicast face, local "
310 "endpoint is already allocated for a UDP unicast channel"));
Giulio Grassi624f6c62014-02-18 19:42:14 +0100311 }
312
313 if (localEndpoint.address().is_v6() || multicastEndpoint.address().is_v6()) {
Spyridon Mastorakis149e02c2015-07-27 13:22:22 -0700314 BOOST_THROW_EXCEPTION(Error("IPv6 multicast is not supported yet. Please provide an IPv4 "
315 "address"));
Giulio Grassi624f6c62014-02-18 19:42:14 +0100316 }
Junxiao Shi79494162014-04-02 18:25:11 -0700317
Davide Pesavento8215a3a2017-12-25 19:14:33 -0500318 ip::udp::socket rxSock(getGlobalIoService());
319 MulticastUdpTransport::openRxSocket(rxSock, multicastEndpoint, localEndpoint.address(), netif);
320 ip::udp::socket txSock(getGlobalIoService());
321 MulticastUdpTransport::openTxSocket(txSock, localEndpoint);
Giulio Grassi6d7176d2014-04-16 16:08:48 +0200322
Junxiao Shi64d99f22017-01-21 23:06:36 +0000323 auto linkService = make_unique<GenericLinkService>();
324 auto transport = make_unique<MulticastUdpTransport>(localEndpoint, multicastEndpoint,
Davide Pesavento8215a3a2017-12-25 19:14:33 -0500325 std::move(rxSock), std::move(txSock),
Teng Liangfe4fce32017-03-29 04:49:38 +0000326 m_mcastConfig.linkType);
Davide Pesavento46afec42017-05-28 14:28:47 -0400327 auto face = make_shared<Face>(std::move(linkService), std::move(transport));
Junxiao Shic099ddb2014-12-25 20:53:20 -0700328
Junxiao Shi64d99f22017-01-21 23:06:36 +0000329 m_mcastFaces[localEndpoint] = face;
330 connectFaceClosedSignal(*face, [this, localEndpoint] { m_mcastFaces.erase(localEndpoint); });
Giulio Grassi624f6c62014-02-18 19:42:14 +0100331
Davide Pesavento292e5e12015-03-13 02:08:33 +0100332 return face;
Giulio Grassi624f6c62014-02-18 19:42:14 +0100333}
334
Davide Pesaventobb734df2017-10-24 18:05:36 -0400335static ndn::optional<ip::address>
336getV4Address(const net::NetworkInterface& netif)
Giulio Grassi624f6c62014-02-18 19:42:14 +0100337{
Davide Pesaventobb734df2017-10-24 18:05:36 -0400338 for (const auto& na : netif.getNetworkAddresses()) {
339 if (na.getFamily() == net::AddressFamily::V4 && na.getScope() != net::AddressScope::NOWHERE) {
340 return na.getIp();
Junxiao Shibbace1d2017-08-06 20:03:37 +0000341 }
342 }
343 return ndn::nullopt;
344}
345
346shared_ptr<Face>
Davide Pesaventobb734df2017-10-24 18:05:36 -0400347UdpFactory::applyMcastConfigToNetif(const shared_ptr<const net::NetworkInterface>& netif)
Junxiao Shibbace1d2017-08-06 20:03:37 +0000348{
Davide Pesaventobb734df2017-10-24 18:05:36 -0400349 BOOST_ASSERT(netif != nullptr);
350
Junxiao Shibbace1d2017-08-06 20:03:37 +0000351 if (!m_mcastConfig.isEnabled) {
352 return nullptr;
353 }
354
355 if (!netif->isUp()) {
356 NFD_LOG_DEBUG("Not creating multicast face on " << netif->getName() << ": netif is down");
357 return nullptr;
358 }
359
360 if (!netif->canMulticast()) {
361 NFD_LOG_DEBUG("Not creating multicast face on " << netif->getName() << ": netif cannot multicast");
362 return nullptr;
363 }
364
365 auto address = getV4Address(*netif);
366 if (!address) {
367 NFD_LOG_DEBUG("Not creating multicast face on " << netif->getName() << ": no IPv4 address");
368 // keep an eye on new addresses
369 m_netifConns[netif->getIndex()].addrAddConn =
370 netif->onAddressAdded.connectSingleShot(bind(&UdpFactory::applyMcastConfigToNetif, this, netif));
371 return nullptr;
372 }
373
374 if (!m_mcastConfig.netifPredicate(*netif)) {
Junxiao Shi79a92082017-08-08 02:40:59 +0000375 NFD_LOG_DEBUG("Not creating multicast face on " << netif->getName() << ": rejected by whitelist/blacklist");
Junxiao Shibbace1d2017-08-06 20:03:37 +0000376 return nullptr;
377 }
378
379 NFD_LOG_DEBUG("Creating multicast face on " << netif->getName());
Junxiao Shibbace1d2017-08-06 20:03:37 +0000380
Davide Pesavento8215a3a2017-12-25 19:14:33 -0500381 udp::Endpoint localEndpoint(*address, m_mcastConfig.group.port());
382 auto face = this->createMulticastFace(localEndpoint, m_mcastConfig.group, netif);
Junxiao Shibbace1d2017-08-06 20:03:37 +0000383 if (face->getId() == INVALID_FACEID) {
384 // new face: register with forwarding
385 this->addFace(face);
386 }
Davide Pesavento8215a3a2017-12-25 19:14:33 -0500387
Junxiao Shibbace1d2017-08-06 20:03:37 +0000388 return face;
389}
390
Junxiao Shi64d99f22017-01-21 23:06:36 +0000391void
Junxiao Shibbace1d2017-08-06 20:03:37 +0000392UdpFactory::applyMcastConfig(const FaceSystem::ConfigContext& context)
Junxiao Shi64d99f22017-01-21 23:06:36 +0000393{
394 // collect old faces
395 std::set<shared_ptr<Face>> oldFaces;
Junxiao Shibbace1d2017-08-06 20:03:37 +0000396 boost::copy(m_mcastFaces | boost::adaptors::map_values, std::inserter(oldFaces, oldFaces.end()));
Junxiao Shi64d99f22017-01-21 23:06:36 +0000397
Junxiao Shibbace1d2017-08-06 20:03:37 +0000398 // create faces if requested by config
399 for (const auto& netif : netmon->listNetworkInterfaces()) {
400 auto face = this->applyMcastConfigToNetif(netif);
401 if (face != nullptr) {
402 // don't destroy face
403 oldFaces.erase(face);
Junxiao Shi64d99f22017-01-21 23:06:36 +0000404 }
405 }
406
407 // destroy old faces that are not needed in new configuration
408 for (const auto& face : oldFaces) {
409 face->close();
410 }
411}
412
413} // namespace face
Giulio Grassi624f6c62014-02-18 19:42:14 +0100414} // namespace nfd