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 | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame^] | 8 | namespace nlsr{ |
| 9 | |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 10 | using namespace std; |
| 11 | |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 12 | class Nlsr; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 13 | |
| 14 | class Npt |
| 15 | { |
| 16 | public: |
| 17 | Npt() |
| 18 | { |
| 19 | } |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 20 | void addNpte(string name, string destRouter, Nlsr& pnlsr); |
| 21 | void removeNpte(string name, string destRouter, Nlsr& pnlsr); |
| 22 | void updateNptWithNewRoute(Nlsr& pnlsr); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 23 | void printNpt(); |
| 24 | private: |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame] | 25 | void addNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr); |
| 26 | void removeNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 27 | private: |
| 28 | std::list<Npte> npteList; |
| 29 | }; |
| 30 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame^] | 31 | }//namespace nlsr |
| 32 | |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 33 | #endif |