Copyright (c) 2011-2015 Regents of the University of California. More...
Namespaces | |
cs | |
detail | |
ethernet | |
face | |
fib | |
fw | |
general | |
log | |
measurements | |
name_tree | |
pit | |
rib | |
scope_prefix | |
strategy_choice | |
tcp | |
tlv | |
udp | |
unix_stream | |
websocket | |
Classes | |
class | ByteCounter |
represents a counter of number of bytes More... | |
class | CommandAuthenticator |
Provides ControlCommand authorization according to NFD configuration file. More... | |
class | CommandAuthenticatorValidationPolicy |
a validation policy that only permits Interest signed by a trust anchor More... | |
class | ConfigFile |
configuration file parsing utility More... | |
class | CsManager |
Implements the CS Management of NFD Management Protocol. More... | |
class | DeadNonceList |
Represents the Dead Nonce List. More... | |
class | FaceEndpoint |
Represents a face-endpoint pair in the forwarder. More... | |
class | FaceManager |
Implements the Face Management of NFD Management Protocol. More... | |
class | FaceTable |
container of all faces More... | |
class | FibManager |
Implements the FIB Management of NFD Management Protocol. More... | |
class | Forwarder |
Main class of NFD's forwarding engine. More... | |
class | ForwarderCounters |
Counters provided by Forwarder. More... | |
class | ForwarderStatusManager |
Implements the Forwarder Status of NFD Management Protocol. More... | |
class | ManagerBase |
A collection of common functions shared by all NFD managers, such as communicating with the dispatcher and command validator. More... | |
class | Network |
class | NetworkRegionTable |
stores a collection of producer region names More... | |
class | Nfd |
Class representing the NFD instance. More... | |
class | NfdRunner |
Executes NFD with RIB manager. More... | |
class | PacketCounter |
represents a counter of number of packets More... | |
class | PrivilegeHelper |
class | RibManager |
Implements the RIB Management of NFD Management Protocol. More... | |
class | SimpleCounter |
represents a counter that encloses an integer value More... | |
class | SizeCounter |
provides a counter that observes the size of a table More... | |
class | StrategyChoiceManager |
Implements the Strategy Choice Management of NFD Management Protocol. More... | |
class | StrategyInfoHost |
Base class for an entity onto which StrategyInfo items may be placed. More... | |
class | TablesConfigSection |
handles 'tables' config section More... | |
Typedefs | |
using | ConfigSection = boost::property_tree::ptree |
a config file section More... | |
using | OptionalConfigSection = boost::optional< const ConfigSection & > |
an optional config file section More... | |
using | ConfigSectionHandler = std::function< void(const ConfigSection §ion, bool isDryRun, const std::string &filename)> |
callback to process a config file section More... | |
using | UnknownConfigSectionHandler = std::function< void(const std::string &filename, const std::string §ionName, const ConfigSection §ion, bool isDryRun)> |
callback to process a config file section without a ConfigSectionHandler More... | |
using | SignerTag = ndn::SimpleTag< Name, 20 > |
an Interest tag to indicate command signer More... | |
Functions | |
It | find_last_if (It first, It last, Pred p) |
std::ostream & | operator<< (std::ostream &os, const Network &network) |
std::istream & | operator>> (std::istream &is, Network &network) |
detail::SimulatorIo & | getGlobalIoService () |
Returns the global io_service instance for the calling thread. More... | |
detail::SimulatorIo & | getMainIoService () |
detail::SimulatorIo & | getRibIoService () |
Scheduler & | getScheduler () |
Returns the global Scheduler instance for the calling thread. More... | |
void | runOnMainIoService (const std::function< void()> &f) |
Run a function on the main io_service instance. More... | |
void | runOnRibIoService (const std::function< void()> &f) |
Run a function on the RIB io_service instance. More... | |
void | resetGlobalScheduler () |
std::ostream & | operator<< (std::ostream &os, const FaceEndpoint &fe) |
NDN_CXX_ASSERT_FORWARD_ITERATOR (FaceTable::const_iterator) | |
static Name | getDefaultStrategyName () |
static void | printUsage (std::ostream &os, const char *programName, const po::options_description &opts) |
static void | printLogModules (std::ostream &os) |
static optional< std::string > | getSignerFromTag (const Interest &interest) |
obtain signer from SignerTag attached to Interest, if available More... | |
template<typename T > | |
static void | copyMtu (const Face &face, T &to) |
static ControlParameters | makeUpdateFaceResponse (const Face &face) |
static ControlParameters | makeCreateFaceResponse (const Face &face) |
static void | updateLinkServiceOptions (Face &face, const ControlParameters ¶meters) |
template<typename T > | |
static void | copyFaceProperties (const Face &face, T &to) |
static ndn::nfd::FaceStatus | makeFaceStatus (const Face &face, const time::steady_clock::time_point &now) |
static bool | matchFilter (const ndn::nfd::FaceQueryFilter &filter, const Face &face) |
std::ostream & | operator<< (std::ostream &os, RibManager::SlAnnounceResult res) |
const std::string | INTERNAL_CONFIG ("internal://nfd.conf") |
static void | ignoreRibAndLogSections (const std::string &filename, const std::string §ionName, const ConfigSection §ion, bool isDryRun) |
void | cleanupOnFaceRemoval (NameTree &nt, Fib &fib, Pit &pit, const Face &face) |
cleanup tables when a face is destroyed More... | |
Variables | |
static thread_local unique_ptr< Scheduler > | g_scheduler |
PrivilegeHelper | |
FaceTable | |
Forwarder | |
const std::string | CFG_FORWARDER = "forwarder" |
CommandAuthenticator | |
FaceManager | |
FibManager | |
RibManager | |
static const std::string | MGMT_MODULE_NAME = "rib" |
static const Name | LOCALHOST_TOP_PREFIX = "/localhost/nfd" |
static const time::seconds | ACTIVE_FACE_FETCH_INTERVAL = 5_min |
StrategyChoiceManager | |
const size_t | DEFAULT_CS_MAX_PACKETS = 65536 |
Nfd | |
DeadNonceList | |
Copyright (c) 2011-2015 Regents of the University of California.
contain name prefixes that affect namespace-based scope control
Copyright (c) 2014-2017, Regents of the University of California, Arizona Board of Regents, Colorado State University, University Pierre & Marie Curie, Sorbonne University, Washington University in St.
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents, Colorado State University, University Pierre & Marie Curie, Sorbonne University, Washington University in St.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents, Colorado State University, University Pierre & Marie Curie, Sorbonne University, Washington University in St.
This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and contributors.
ndnSIM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ndnSIM, e.g., in COPYING.md file. If not, see http://www.gnu.org/licenses/.
Louis, Beijing Institute of Technology, The University of Memphis.
This file is part of NFD (Named Data Networking Forwarding Daemon). See AUTHORS.md for complete list of NFD authors and contributors.
NFD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with NFD, e.g., in COPYING.md file. If not, see http://www.gnu.org/licenses/.
Louis, Beijing Institute of Technology, The University of Memphis
This file is part of NFD (Named Data Networking Forwarding Daemon). See AUTHORS.md for complete list of NFD authors and contributors.
NFD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with NFD, e.g., in COPYING.md file. If not, see http://www.gnu.org/licenses/.
typedef boost::property_tree::ptree nfd::ConfigSection |
a config file section
Definition at line 39 of file ndn-l3-protocol.hpp.
using nfd::OptionalConfigSection = typedef boost::optional<const ConfigSection&> |
an optional config file section
Definition at line 41 of file config-file.hpp.
using nfd::ConfigSectionHandler = typedef std::function<void(const ConfigSection& section, bool isDryRun, const std::string& filename)> |
callback to process a config file section
Definition at line 46 of file config-file.hpp.
using nfd::UnknownConfigSectionHandler = typedef std::function<void(const std::string& filename, const std::string& sectionName, const ConfigSection& section, bool isDryRun)> |
callback to process a config file section without a ConfigSectionHandler
Definition at line 53 of file config-file.hpp.
using nfd::SignerTag = typedef ndn::SimpleTag<Name, 20> |
an Interest tag to indicate command signer
Definition at line 50 of file command-authenticator.cpp.
It nfd::find_last_if | ( | It | first, |
It | last, | ||
Pred | p | ||
) |
Definition at line 49 of file algorithm.hpp.
References websocketpp::http::status_code::found.
std::ostream & nfd::operator<< | ( | std::ostream & | os, |
const Network & | network | ||
) |
Definition at line 79 of file network.cpp.
std::istream & nfd::operator>> | ( | std::istream & | is, |
Network & | network | ||
) |
Definition at line 85 of file network.cpp.
detail::SimulatorIo & nfd::getGlobalIoService | ( | ) |
Returns the global io_service instance for the calling thread.
Definition at line 49 of file global.cpp.
Referenced by nfd::FaceTable::addReserved(), nfd::face::TcpChannel::connect(), nfd::face::UdpFactory::createMulticastFace(), nfd::face::StreamTransport< boost::asio::local::stream_protocol >::doClose(), nfd::face::EthernetTransport::doClose(), nfd::face::DatagramTransport< boost::asio::ip::udp, Multicast >::doClose(), nfd::face::UdpChannel::listen(), nfd::face::UnixStreamChannel::listen(), nfd::face::MulticastEthernetTransport::MulticastEthernetTransport(), nfd::face::InternalForwarderTransport::receivePacket(), nfd::face::InternalClientTransport::receivePacket(), nfd::NfdRunner::run(), nfd::RibManager::slFindAnn(), nfd::NfdRunner::systemdNotify(), and nfd::face::WebSocketChannel::WebSocketChannel().
detail::SimulatorIo & nfd::getMainIoService | ( | ) |
Definition at line 56 of file global.cpp.
Referenced by runOnMainIoService().
detail::SimulatorIo & nfd::getRibIoService | ( | ) |
Definition at line 63 of file global.cpp.
Referenced by runOnRibIoService().
Scheduler & nfd::getScheduler | ( | ) |
Returns the global Scheduler instance for the calling thread.
Definition at line 70 of file global.cpp.
References g_scheduler.
Referenced by nfd::DeadNonceList::add(), nfd::face::UnicastUdpTransport::afterChangePersistency(), nfd::face::UnicastEthernetTransport::afterChangePersistency(), nfd::fw::AccessStrategy::afterReceiveInterest(), nfd::face::TcpChannel::connect(), nfd::DeadNonceList::DeadNonceList(), nfd::detail::SimulatorIo::dispatch(), nfd::RibManager::enableLocalFields(), nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), nfd::measurements::Measurements::extendLifetime(), nfd::face::LpReliability::handleOutgoing(), nfd::Nfd::initialize(), nfd::measurements::Measurements::Measurements(), nfd::face::LpReliability::onLpPacketLost(), nfd::Forwarder::onNewNextHop(), nfd::detail::SimulatorIo::post(), nfd::rib::Readvertise::Readvertise(), nfd::face::LpReassembler::receiveFragment(), nfd::face::WebSocketTransport::receiveMessage(), nfd::fw::asf::ProbingModule::scheduleProbe(), nfd::fw::asf::FaceInfo::scheduleTimeout(), nfd::RibManager::slFindAnn(), nfd::face::LpReliability::startIdleAckTimer(), and nfd::cs::priority_fifo::PriorityFifoPolicy::~PriorityFifoPolicy().
void nfd::runOnMainIoService | ( | const std::function< void()> & | f | ) |
Run a function on the main io_service instance.
Definition at line 80 of file global.cpp.
References getMainIoService(), and nfd::detail::SimulatorIo::post().
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveNack().
void nfd::runOnRibIoService | ( | const std::function< void()> & | f | ) |
Run a function on the RIB io_service instance.
Definition at line 86 of file global.cpp.
References getRibIoService(), and nfd::detail::SimulatorIo::post().
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveNack().
void nfd::resetGlobalScheduler | ( | ) |
Definition at line 92 of file global.cpp.
Referenced by ns3::ndn::L3Protocol::DoDispose().
|
inline |
Definition at line 51 of file face-endpoint.hpp.
References nfd::FaceEndpoint::endpoint, and nfd::FaceEndpoint::face.
nfd::NDN_CXX_ASSERT_FORWARD_ITERATOR | ( | FaceTable::const_iterator | ) |
|
static |
Definition at line 48 of file forwarder.cpp.
References nfd::fw::BestRouteStrategy::getStrategyName().
Referenced by nfd::Forwarder::Forwarder().
|
static |
|
static |
Definition at line 238 of file main.cpp.
References ndn::make_ostream_joiner().
Referenced by main().
|
static |
obtain signer from SignerTag attached to Interest, if available
Definition at line 55 of file command-authenticator.cpp.
References ndn::TagHost::getTag(), and nonstd::optional_lite::nullopt.
Referenced by nfd::CommandAuthenticator::makeAuthorization().
|
static |
Definition at line 157 of file face-manager.cpp.
References ndn::MAX_NDN_PACKET_SIZE, and nfd::face::MTU_UNLIMITED.
Referenced by makeFaceStatus(), and makeUpdateFaceResponse().
|
static |
Definition at line 168 of file face-manager.cpp.
References ndn::nfd::BIT_CONGESTION_MARKING_ENABLED, ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, ndn::nfd::BIT_LP_RELIABILITY_ENABLED, copyMtu(), nfd::face::GenericLinkService, ndn::nfd::ControlParameters::setBaseCongestionMarkingInterval(), ndn::nfd::ControlParameters::setDefaultCongestionThreshold(), ndn::nfd::ControlParameters::setFaceId(), and ndn::nfd::ControlParameters::setFlagBit().
Referenced by makeCreateFaceResponse(), and updateLinkServiceOptions().
|
static |
Definition at line 189 of file face-manager.cpp.
References nfd::FaceTable::add(), ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, nfd::ManagerBase::done, ndn::nfd::FACE_SCOPE_LOCAL, ndn::nfd::ControlParameters::getFlagBit(), ndn::nfd::ControlParameters::hasFlagBit(), nfd::face::INVALID_FACEID, makeUpdateFaceResponse(), NFD_LOG_TRACE, ndn::nfd::ControlParameters::setUri(), and ndn::nfd::ControlParameters::wireEncode().
|
static |
Definition at line 224 of file face-manager.cpp.
References ndn::nfd::BIT_CONGESTION_MARKING_ENABLED, ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, ndn::nfd::BIT_LP_RELIABILITY_ENABLED, nfd::ManagerBase::done, Face, ndn::nfd::FACE_SCOPE_LOCAL, nfd::face::GenericLinkService, nfd::FaceTable::get(), ndn::nfd::ControlParameters::getBaseCongestionMarkingInterval(), ndn::nfd::ControlParameters::getDefaultCongestionThreshold(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getFacePersistency(), ndn::nfd::ControlParameters::getFlagBit(), ndn::nfd::ControlParameters::getMtu(), ndn::TagHost::getTag(), ndn::nfd::ControlParameters::hasBaseCongestionMarkingInterval(), ndn::nfd::ControlParameters::hasDefaultCongestionThreshold(), ndn::nfd::ControlParameters::hasFacePersistency(), ndn::nfd::ControlParameters::hasFlagBit(), ndn::nfd::ControlParameters::hasMtu(), nfd::ManagerBase::interest, makeUpdateFaceResponse(), NFD_LOG_TRACE, ndn::nfd::ControlParameters::setFacePersistency(), ndn::nfd::ControlParameters::setFlagBit(), ndn::nfd::ControlParameters::setMtu(), and ndn::nfd::ControlParameters::wireEncode().
|
static |
Definition at line 346 of file face-manager.cpp.
References ndn::nfd::BIT_CONGESTION_MARKING_ENABLED, ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, ndn::nfd::BIT_LP_RELIABILITY_ENABLED, and nfd::face::GenericLinkService.
Referenced by makeFaceStatus(), and matchFilter().
|
static |
Definition at line 365 of file face-manager.cpp.
References ndn::mgmt::StatusDatasetContext::append(), copyFaceProperties(), copyMtu(), ndn::mgmt::StatusDatasetContext::end(), nfd::face::GenericLinkService, nfd::face::FaceSystem::listProtocolFactories(), ndn::time::steady_clock::now(), ndn::nfd::FaceStatus::setBaseCongestionMarkingInterval(), ndn::nfd::FaceStatus::setDefaultCongestionThreshold(), ndn::nfd::FaceStatus::setExpirationPeriod(), ndn::nfd::ChannelStatus::setLocalUri(), ndn::nfd::FaceStatus::setNInBytes(), ndn::nfd::FaceStatus::setNInData(), ndn::nfd::FaceStatus::setNInInterests(), ndn::nfd::FaceStatus::setNInNacks(), ndn::nfd::FaceStatus::setNOutBytes(), ndn::nfd::FaceStatus::setNOutData(), ndn::nfd::FaceStatus::setNOutInterests(), ndn::nfd::FaceStatus::setNOutNacks(), ndn::nfd::FaceStatus::wireEncode(), and ndn::nfd::ChannelStatus::wireEncode().
Referenced by matchFilter().
|
static |
Definition at line 424 of file face-manager.cpp.
References ndn::mgmt::StatusDatasetContext::append(), copyFaceProperties(), ndn::mgmt::StatusDatasetContext::end(), Face, ndn::nfd::FACE_EVENT_DOWN, ndn::nfd::FACE_EVENT_UP, ndn::nfd::FaceQueryFilter::getFaceId(), ndn::nfd::FaceQueryFilter::getFacePersistency(), ndn::nfd::FaceQueryFilter::getFaceScope(), ndn::nfd::FaceQueryFilter::getLinkType(), ndn::nfd::FaceQueryFilter::getLocalUri(), ndn::Interest::getName(), ndn::nfd::FaceQueryFilter::getRemoteUri(), ndn::nfd::FaceQueryFilter::getUriScheme(), ndn::nfd::FaceQueryFilter::hasFaceId(), ndn::nfd::FaceQueryFilter::hasFacePersistency(), ndn::nfd::FaceQueryFilter::hasFaceScope(), ndn::nfd::FaceQueryFilter::hasLinkType(), ndn::nfd::FaceQueryFilter::hasLocalUri(), ndn::nfd::FaceQueryFilter::hasRemoteUri(), ndn::nfd::FaceQueryFilter::hasUriScheme(), makeFaceStatus(), NFD_LOG_DEBUG, ndn::time::steady_clock::now(), ndn::mgmt::StatusDatasetContext::reject(), ndn::nfd::FaceEventNotification::setKind(), ndn::nfd::FaceQueryFilter::wireDecode(), ndn::nfd::FaceEventNotification::wireEncode(), and ndn::nfd::FaceStatus::wireEncode().
std::ostream & nfd::operator<< | ( | std::ostream & | os, |
RibManager::SlAnnounceResult | res | ||
) |
Definition at line 325 of file rib-manager.cpp.
References nfd::RibManager::ERROR, nfd::RibManager::EXPIRED, NDN_CXX_UNREACHABLE, NDN_THROW, nfd::RibManager::NOT_FOUND, nfd::RibManager::OK, and nfd::RibManager::VALIDATION_FAILURE.
const std::string nfd::INTERNAL_CONFIG | ( | "internal://nfd.conf" | ) |
Referenced by ignoreRibAndLogSections(), nfd::Nfd::initialize(), and nfd::Nfd::reloadConfigFile().
|
inlinestatic |
Definition at line 118 of file nfd.cpp.
References nfd::CommandAuthenticator::create(), nfd::TablesConfigSection::ensureConfigured(), nfd::face::FACEID_INTERNAL_FACE, INTERNAL_CONFIG(), nfd::face::makeInternalFace(), nfd::general::setConfigFile(), nfd::TablesConfigSection::setConfigFile(), and nfd::ConfigFile::throwErrorOnUnknownSection().
Referenced by nfd::Nfd::reloadConfigFile().
cleanup tables when a face is destroyed
This function enumerates the NameTree, calls Fib::removeNextHop for each FIB entry, calls Pit::deleteInOutRecords for each PIT entry, and finally deletes any name tree entries that have become empty.
Definition at line 31 of file cleanup.cpp.
References nfd::pit::Pit::deleteInOutRecords(), and nfd::fib::Fib::removeNextHop().
Referenced by nfd::Forwarder::Forwarder().
|
static |
Definition at line 30 of file global.cpp.
Referenced by getScheduler().
Definition at line 34 of file privilege-helper.cpp.
Definition at line 37 of file face-table.cpp.
Definition at line 43 of file forwarder.cpp.
const std::string nfd::CFG_FORWARDER = "forwarder" |
Definition at line 45 of file forwarder.cpp.
Referenced by nfd::Forwarder::setConfigFile().
Definition at line 44 of file command-authenticator.cpp.
Referenced by nfd::CommandAuthenticator::create().
Definition at line 41 of file face-manager.cpp.
Definition at line 39 of file fib-manager.cpp.
Definition at line 43 of file rib-manager.cpp.
|
static |
Definition at line 45 of file rib-manager.cpp.
|
static |
Definition at line 46 of file rib-manager.cpp.
|
static |
Definition at line 47 of file rib-manager.cpp.
Definition at line 35 of file strategy-choice-manager.cpp.
const size_t nfd::DEFAULT_CS_MAX_PACKETS = 65536 |
Definition at line 31 of file tables-config-section.cpp.
Referenced by nfd::TablesConfigSection::ensureConfigured().
Definition at line 33 of file dead-nonce-list.cpp.