26 #include <ndn-cxx/mgmt/nfd/control-response.hpp>
27 #include <ndn-cxx/util/regex.hpp>
45 ndn::mgmt::makeAcceptAllAuthorization(),
46 std::bind(&DatasetInterestHandler::publishLsaStatus<AdjLsa>,
this, _1, _2, _3));
48 ndn::mgmt::makeAcceptAllAuthorization(),
49 std::bind(&DatasetInterestHandler::publishLsaStatus<CoordinateLsa>,
this, _1, _2, _3));
51 ndn::mgmt::makeAcceptAllAuthorization(),
52 std::bind(&DatasetInterestHandler::publishLsaStatus<NameLsa>,
this, _1, _2, _3));
54 ndn::mgmt::makeAcceptAllAuthorization(),
55 std::bind(&DatasetInterestHandler::publishRtStatus,
this, _1, _2, _3));
60 DatasetInterestHandler::publishLsaStatus(
const ndn::Name& topPrefix,
const ndn::Interest& interest,
61 ndn::mgmt::StatusDatasetContext& context)
65 for (
auto lsaIt = lsaRange.first; lsaIt != lsaRange.second; ++lsaIt) {
66 context.append((*lsaIt)->wireEncode());
72 DatasetInterestHandler::publishRtStatus(
const ndn::Name& topPrefix,
const ndn::Interest& interest,
73 ndn::mgmt::StatusDatasetContext& context)
DatasetInterestHandler(ndn::mgmt::Dispatcher &dispatcher, const Lsdb &lsdb, const RoutingTable &rt)
std::pair< LsaContainer::index< Lsdb::byType >::type::iterator, LsaContainer::index< Lsdb::byType >::type::iterator > getLsdbIterator() const
const ndn::Block & wireEncode() const
Copyright (c) 2014-2018, The University of Memphis, Regents of the University of California.
#define INIT_LOGGER(name)
#define NLSR_LOG_TRACE(x)
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
const ndn::PartialName ADJACENCIES_DATASET
const ndn::PartialName RT_DATASET
const ndn::PartialName NAMES_DATASET
const ndn::PartialName COORDINATES_DATASET