NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
fib-manager.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_MGMT_FIB_MANAGER_HPP
27 #define NFD_DAEMON_MGMT_FIB_MANAGER_HPP
28 
29 #include "nfd-manager-base.hpp"
30 #include "core/logger.hpp"
31 #include "table/fib.hpp"
32 #include "fw/forwarder.hpp"
33 
34 namespace nfd {
35 
36 class FaceTable;
37 
42 class FibManager : public NfdManagerBase
43 {
44 public:
45  FibManager(Fib& fib,
46  const FaceTable& faceTable,
47  Dispatcher& dispatcher,
48  CommandAuthenticator& authenticator);
49 
50 private:
51  void
52  addNextHop(const Name& topPrefix, const Interest& interest,
53  ControlParameters parameters,
54  const ndn::mgmt::CommandContinuation& done);
55 
56  void
57  removeNextHop(const Name& topPrefix, const Interest& interest,
58  ControlParameters parameters,
59  const ndn::mgmt::CommandContinuation& done);
60 
61  void
62  listEntries(const Name& topPrefix, const Interest& interest,
64 
65 private:
66  void
67  setFaceForSelfRegistration(const Interest& request, ControlParameters& parameters);
68 
69 private:
70  Fib& m_fib;
71  const FaceTable& m_faceTable;
72 };
73 
74 } // namespace nfd
75 
76 #endif // NFD_DAEMON_MGMT_FIB_MANAGER_HPP
represents parameters in a ControlCommand request or response
represents a dispatcher on server side of NFD Management protocol
Definition: dispatcher.hpp:129
represents an Interest packet
Definition: interest.hpp:42
FibManager(Fib &fib, const FaceTable &faceTable, Dispatcher &dispatcher, CommandAuthenticator &authenticator)
Definition: fib-manager.cpp:38
container of all faces
Definition: face-table.hpp:37
implement the FIB Management of NFD Management Protocol.
Definition: fib-manager.hpp:42
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
FaceTable
Definition: face-table.cpp:36
Represents an absolute name.
Definition: name.hpp:42
std::function< void(const ControlResponse &resp)> CommandContinuation
a function to be called after ControlCommandHandler completes
Definition: dispatcher.hpp:95
provides ControlCommand authorization according to NFD configuration file
provides a context for generating response to a StatusDataset request
a collection of common functions shared by all NFD managers, such as communicating with the dispatche...