blob: f4ddbf9ba61fb9ce1415c09539a9c5a017615966 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef NLSR_NPT_HPP
2#define NLSR_NPT_HPP
3
4#include <list>
5#include "nlsr_npte.hpp"
6#include "nlsr_rte.hpp"
7
akmhoque1fd8c1e2014-02-19 19:41:49 -06008namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -06009{
akmhoque1fd8c1e2014-02-19 19:41:49 -060010
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 };
akmhoque298385a2014-02-13 14:13:09 -060031
akmhoqueb1710aa2014-02-19 17:13:36 -060032}//namespace nlsr
33
akmhoque298385a2014-02-13 14:13:09 -060034#endif