akmhoque | 62a8e40 | 2014-02-08 12:00:27 -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 | using namespace std; |
| 9 | |
| 10 | class nlsr; |
| 11 | |
| 12 | class Npt |
| 13 | { |
| 14 | public: |
| 15 | Npt() |
| 16 | { |
| 17 | } |
| 18 | void addNpte(string name, string destRouter, nlsr& pnlsr); |
| 19 | void removeNpte(string name, string destRouter, nlsr& pnlsr); |
| 20 | void updateNptWithNewRoute(nlsr& pnlsr); |
| 21 | void printNpt(); |
| 22 | private: |
| 23 | void addNpte(string name, RoutingTableEntry& rte, nlsr& pnlsr); |
| 24 | void removeNpte(string name, RoutingTableEntry& rte, nlsr& pnlsr); |
| 25 | private: |
| 26 | std::list<Npte> npteList; |
| 27 | }; |
| 28 | |
| 29 | #endif |