Represents the Forwarding Information Base (FIB).
More...
#include <daemon/table/fib.hpp>
|
static constexpr size_t | getMaxDepth () |
| Maximum number of components in a FIB entry prefix. More...
|
|
Represents the Forwarding Information Base (FIB).
- See also
- fib::Entry
Definition at line 50 of file fib.hpp.
◆ const_iterator
◆ Range
◆ RemoveNextHopResult
Enumerator |
---|
NO_SUCH_NEXTHOP | the nexthop is not found
|
NEXTHOP_REMOVED | the nexthop is removed and the fib entry stays
|
FIB_ENTRY_REMOVED | the nexthop is removed and the fib entry is removed
|
Definition at line 116 of file fib.hpp.
◆ Fib()
nfd::fib::Fib::Fib |
( |
NameTree & |
nameTree | ) |
|
|
explicit |
◆ addOrUpdateNextHop()
void nfd::fib::Fib::addOrUpdateNextHop |
( |
Entry & |
entry, |
|
|
Face & |
face, |
|
|
uint64_t |
cost |
|
) |
| |
Add a NextHop record.
If a NextHop record for face
already exists in entry
, its cost is set to cost
.
Definition at line 131 of file fib.cpp.
◆ begin()
- Returns
- an iterator to the beginning
- Note
- The iteration order is implementation-defined.
- Warning
- Undefined behavior may occur if a FIB/PIT/Measurements/StrategyChoice entry is inserted or erased during iteration.
Definition at line 137 of file fib.hpp.
◆ end()
- Returns
- an iterator to the end
- See also
- begin()
Definition at line 146 of file fib.hpp.
◆ erase() [1/2]
void nfd::fib::Fib::erase |
( |
const Entry & |
entry | ) |
|
◆ erase() [2/2]
void nfd::fib::Fib::erase |
( |
const Name & |
prefix | ) |
|
◆ findExactMatch()
Entry * nfd::fib::Fib::findExactMatch |
( |
const Name & |
prefix | ) |
|
Performs an exact match lookup.
Definition at line 75 of file fib.cpp.
◆ findLongestPrefixMatch() [1/3]
Performs a longest prefix match.
This is equivalent to findLongestPrefixMatch(measurementsEntry.getName())
Definition at line 69 of file fib.cpp.
◆ findLongestPrefixMatch() [2/3]
const Entry & nfd::fib::Fib::findLongestPrefixMatch |
( |
const Name & |
prefix | ) |
const |
Performs a longest prefix match.
Definition at line 57 of file fib.cpp.
◆ findLongestPrefixMatch() [3/3]
const Entry & nfd::fib::Fib::findLongestPrefixMatch |
( |
const pit::Entry & |
pitEntry | ) |
const |
Performs a longest prefix match.
This is equivalent to findLongestPrefixMatch(pitEntry.getName())
Definition at line 63 of file fib.cpp.
◆ getMaxDepth()
static constexpr size_t nfd::fib::Fib::getMaxDepth |
( |
| ) |
|
|
inlinestaticconstexpr |
Maximum number of components in a FIB entry prefix.
Definition at line 91 of file fib.hpp.
◆ insert()
std::pair< Entry *, bool > nfd::fib::Fib::insert |
( |
const Name & |
prefix | ) |
|
Find or insert a FIB entry.
- Parameters
-
prefix | FIB entry name; it must not have more than getMaxDepth() components. |
- Returns
- the entry, and true for new entry or false for existing entry
Definition at line 85 of file fib.cpp.
◆ removeNextHop()
Remove the NextHop record for face
from entry
.
Definition at line 139 of file fib.cpp.
◆ size()
size_t nfd::fib::Fib::size |
( |
| ) |
const |
|
inlinenoexcept |
◆ afterNewNextHop
signal::Signal<Fib, Name, NextHop> nfd::fib::Fib::afterNewNextHop |
Signals on Fib entry nexthop creation.
Definition at line 154 of file fib.hpp.