|
ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
|
FIB entry. More...
#include <ndn/fib.hpp>
Public Member Functions | |
| const Name & | prefix () const |
| Get the Name prefix. | |
Nexthop management | |
| size_t | nexthopCount () const |
| Get the number of next-hops. | |
| const FibNexthop & | nexthop (size_t index) const |
| Get the next-hop at a given index. | |
| bool | addNexthop (FaceId faceId, uint8_t cost=0) |
| Add a next-hop. | |
| bool | removeNexthop (FaceId faceId) |
| Remove a next-hop. | |
Friends | |
| class | Fib |
FIB entry.
Holds forwarding information for a single Name prefix. Can have multiple next-hops, supporting multipath forwarding.
| bool ndn::FibEntry::addNexthop | ( | FaceId | faceId, |
| uint8_t | cost = 0 |
||
| ) |
Add a next-hop.
If the same Face is already registered, updates its cost.
| faceId | Face ID to add |
| cost | Cost (default: 0) |
Definition at line 20 of file fib.cpp.
References ndn::FIB_MAX_NEXTHOPS.
Referenced by ndn::Fib::addRoute().
| const FibNexthop & ndn::FibEntry::nexthop | ( | size_t | index | ) | const |
Get the next-hop at a given index.
| index | Index (starting from 0) |
|
inline |
|
inline |
| bool ndn::FibEntry::removeNexthop | ( | FaceId | faceId | ) |
Remove a next-hop.
| faceId | Face ID to remove |
Definition at line 40 of file fib.cpp.
Referenced by ndn::Fib::removeRoute().