Forwarding Information Base (FIB) helper. More...
#include <ndn-fib-helper.hpp>
Static Public Member Functions | |
static void | AddRoute (Ptr< Node > node, const Name &prefix, shared_ptr< Face > face, int32_t metric) |
Add forwarding entry to FIB. More... | |
static void | AddRoute (const std::string &nodeName, const Name &prefix, uint32_t faceId, int32_t metric) |
Add forwarding entry to FIB. More... | |
static void | AddRoute (Ptr< Node > node, const Name &prefix, uint32_t faceId, int32_t metric) |
Add forwarding entry to FIB. More... | |
static void | AddRoute (Ptr< Node > node, const Name &prefix, Ptr< Node > otherNode, int32_t metric) |
Add forwarding entry to FIB (work only with point-to-point links) More... | |
static void | AddRoute (const std::string &nodeName, const Name &prefix, const std::string &otherNodeName, int32_t metric) |
Add forwarding entry to FIB (work only with point-to-point links) More... | |
static void | RemoveRoute (Ptr< Node > node, const Name &prefix, shared_ptr< Face > face) |
remove forwarding entry in FIB More... | |
static void | RemoveRoute (Ptr< Node > node, const Name &prefix, uint32_t faceId) |
remove forwarding entry in FIB More... | |
static void | RemoveRoute (const std::string &nodeName, const Name &prefix, uint32_t faceId) |
remove forwarding entry in FIB More... | |
static void | RemoveRoute (Ptr< Node > node, const Name &prefix, Ptr< Node > otherNode) |
remove forwarding entry in FIB (work only with point-to-point links) More... | |
static void | RemoveRoute (const std::string &nodeName, const Name &prefix, const std::string &otherNodeName) |
remove forwarding entry in FIB (work only with point-to-point links) More... | |
Forwarding Information Base (FIB) helper.
The FIB helper interacts with the FIB manager of NFD by sending special Interest commands to the manager in order to add/remove a next hop from FIB entries or add routes to the FIB manually (manual configuration of FIB).
Definition at line 44 of file ndn-fib-helper.hpp.
|
static |
Add forwarding entry to FIB.
node | Node |
prefix | Routing prefix |
face | Face |
metric | Routing metric |
Definition at line 85 of file ndn-fib-helper.cpp.
References ndn::tlv::nfd::ControlParameters.
Referenced by AddRoute(), ns3::ndn::ScenarioHelper::addRoutes(), ns3::ndn::GlobalRoutingHelper::CalculateAllPossibleRoutes(), ns3::ndn::GlobalRoutingHelper::CalculateRoutes(), and ns3::ndn::Producer::StartApplication().
|
static |
Add forwarding entry to FIB.
nodeName | Node name |
prefix | Routing prefix |
faceId | Face index |
metric | Routing metric |
Definition at line 112 of file ndn-fib-helper.cpp.
References AddRoute().
|
static |
Add forwarding entry to FIB.
nodeName | Node |
prefix | Routing prefix |
faceId | Face index |
metric | Routing metric |
Definition at line 99 of file ndn-fib-helper.cpp.
References AddRoute().
|
static |
Add forwarding entry to FIB (work only with point-to-point links)
node | Node |
prefix | Routing prefix |
otherNode | The other node, to which interests (will be used to infer face id |
metric | Routing metric |
Definition at line 129 of file ndn-fib-helper.cpp.
References AddRoute().
|
static |
Add forwarding entry to FIB (work only with point-to-point links)
nodeName | Node name (refer to ns3::Names) |
prefix | Routing prefix |
otherNode | The other node name, to which interests (will be used to infer face id (refer to ns3::Names) |
metric | Routing metric |
Definition at line 160 of file ndn-fib-helper.cpp.
References AddRoute().
|
static |
remove forwarding entry in FIB
node | Node |
prefix | Routing prefix |
face | Face |
Definition at line 173 of file ndn-fib-helper.cpp.
References ndn::tlv::nfd::ControlParameters, and ns3::ndn::L3Protocol::getForwarder().
Referenced by RemoveRoute().
|
static |
remove forwarding entry in FIB
node | Node |
prefix | Routing prefix |
faceId | Face index |
Definition at line 190 of file ndn-fib-helper.cpp.
References RemoveRoute().
|
static |
remove forwarding entry in FIB
nodeName | Node name |
prefix | Routing prefix |
faceId | Face index |
Definition at line 203 of file ndn-fib-helper.cpp.
References RemoveRoute().
|
static |
remove forwarding entry in FIB (work only with point-to-point links)
node | Node |
prefix | Routing prefix |
otherNode | The other node, to which interests (will be used to infer face id |
Definition at line 217 of file ndn-fib-helper.cpp.
References RemoveRoute().
|
static |
remove forwarding entry in FIB (work only with point-to-point links)
nodeName | Node name |
prefix | Routing prefix |
otherNode | The other node name, to which interests (will be used to infer face id |
Definition at line 248 of file ndn-fib-helper.cpp.
References RemoveRoute().