blob: c8394dc998392fac53e56105c795efd520052a15 [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
8using namespace std;
9
akmhoque1a481092014-02-19 16:34:22 -060010class Nlsr;
akmhoque298385a2014-02-13 14:13:09 -060011
12class Npt
13{
14public:
15 Npt()
16 {
17 }
akmhoque1a481092014-02-19 16:34:22 -060018 void addNpte(string name, string destRouter, Nlsr& pnlsr);
19 void removeNpte(string name, string destRouter, Nlsr& pnlsr);
20 void updateNptWithNewRoute(Nlsr& pnlsr);
akmhoque298385a2014-02-13 14:13:09 -060021 void printNpt();
22private:
akmhoque1a481092014-02-19 16:34:22 -060023 void addNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr);
24 void removeNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr);
akmhoque298385a2014-02-13 14:13:09 -060025private:
26 std::list<Npte> npteList;
27};
28
29#endif