akmhoque | 298385a | 2014-02-13 14:13:09 -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 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 8 | namespace nlsr |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 9 | { |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 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 | }; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 31 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame] | 32 | }//namespace nlsr |
| 33 | |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 34 | #endif |