akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 1 | #ifndef NLSR_NPT_HPP |
| 2 | #define NLSR_NPT_HPP |
| 3 | |
| 4 | #include <list> |
| 5 | #include "nlsr_npte.hpp" |
| 6 | #include "nlsr_rte.hpp" |
| 7 | |
| 8 | namespace nlsr |
| 9 | { |
| 10 | |
| 11 | using namespace std; |
| 12 | |
| 13 | class Nlsr; |
| 14 | |
| 15 | class Npt |
| 16 | { |
| 17 | public: |
| 18 | Npt() |
| 19 | { |
| 20 | } |
| 21 | void addNpte(string name, string destRouter, Nlsr& pnlsr); |
| 22 | void removeNpte(string name, string destRouter, Nlsr& pnlsr); |
| 23 | void updateNptWithNewRoute(Nlsr& pnlsr); |
| 24 | void printNpt(); |
| 25 | private: |
| 26 | void addNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr); |
| 27 | void removeNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr); |
| 28 | private: |
| 29 | std::list<Npte> npteList; |
| 30 | }; |
| 31 | |
| 32 | }//namespace nlsr |
| 33 | |
| 34 | #endif |