represents a FIB entry More...
#include <fib-entry.hpp>
Public Member Functions | |
Entry (const Name &prefix) | |
const Name & | getPrefix () const |
const NextHopList & | getNextHops () const |
bool | hasNextHops () const |
bool | hasNextHop (const Face &face, uint64_t endpointId) const |
void | addOrUpdateNextHop (Face &face, uint64_t endpointId, uint64_t cost) |
adds a NextHop record More... | |
void | removeNextHop (const Face &face, uint64_t endpointId) |
removes the NextHop record for face with the given endpointId More... | |
void | removeNextHopByFace (const Face &face) |
removes all NextHop records on face for any endpointId More... | |
Friends | |
class | name_tree::Entry |
represents a FIB entry
Definition at line 51 of file fib-entry.hpp.
|
explicit |
Definition at line 31 of file fib-entry.cpp.
|
inline |
Definition at line 58 of file fib-entry.hpp.
Referenced by nfd::fw::asf::AsfMeasurements::getOrCreateNamespaceInfo(), nfd::name_tree::NameTree::lookup(), nfd::fw::Strategy::lookupFib(), and nfd::fw::asf::ProbingModule::scheduleProbe().
|
inline |
Definition at line 64 of file fib-entry.hpp.
Referenced by nfd::fw::BestRouteStrategyBase::afterReceiveInterest(), nfd::fw::NccStrategy::afterReceiveInterest(), nfd::fw::MulticastStrategy::afterReceiveInterest(), nfd::fw::asf::AsfStrategy::afterReceiveInterest(), nfd::fw::BestRouteStrategy2::afterReceiveInterest(), nfd::fw::SelfLearningStrategy::afterReceiveInterest(), nfd::fw::NccStrategy::doPropagate(), and nfd::fw::asf::ProbingModule::getFaceToProbe().
|
inline |
Definition at line 72 of file fib-entry.hpp.
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveNack().
bool nfd::fib::Entry::hasNextHop | ( | const Face & | face, |
uint64_t | endpointId | ||
) | const |
face
with the given endpointId
Definition at line 47 of file fib-entry.cpp.
Referenced by nfd::fw::NccStrategy::afterReceiveInterest(), and nfd::fw::NccStrategy::doPropagate().
void nfd::fib::Entry::addOrUpdateNextHop | ( | Face & | face, |
uint64_t | endpointId, | ||
uint64_t | cost | ||
) |
adds a NextHop record
If a NextHop record for face
and endpointId
already exists, its cost is updated.
Definition at line 53 of file fib-entry.cpp.
void nfd::fib::Entry::removeNextHop | ( | const Face & | face, |
uint64_t | endpointId | ||
) |
removes the NextHop record for face
with the given endpointId
Definition at line 65 of file fib-entry.cpp.
Referenced by nfd::fib::Fib::removeNextHop().
void nfd::fib::Entry::removeNextHopByFace | ( | const Face & | face | ) |
removes all NextHop records on face
for any endpointId
Definition at line 74 of file fib-entry.cpp.
Referenced by nfd::fib::Fib::removeNextHopByFace().
|
friend |
Definition at line 117 of file fib-entry.hpp.