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 | |||||
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 11 | using namespace std; |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 12 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 13 | class Nlsr; |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 14 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 15 | class Npt |
16 | { | ||||
17 | public: | ||||
18 | Npt() | ||||
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 19 | { |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 20 | } |
21 | void addNpteByDestName(string name, string destRouter, Nlsr& pnlsr); | ||||
22 | void removeNpte(string name, string destRouter, Nlsr& pnlsr); | ||||
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 23 | void updateWithNewRoute(Nlsr& pnlsr); |
24 | void print(); | ||||
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 25 | private: |
26 | void addNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr); | ||||
27 | void removeNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr); | ||||
28 | private: | ||||
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 29 | std::list<Npte> m_npteList; |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 30 | }; |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 31 | |
32 | }//namespace nlsr | ||||
33 | |||||
34 | #endif |