blob: 8ceae33173b4bdff303c651d095844230c00aedf [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
10class nlsr;
11
12class Npt
13{
14public:
15 Npt()
16 {
17 }
18 void addNpte(string name, string destRouter, nlsr& pnlsr);
19 void removeNpte(string name, string destRouter, nlsr& pnlsr);
20 void updateNptWithNewRoute(nlsr& pnlsr);
21 void printNpt();
22private:
23 void addNpte(string name, RoutingTableEntry& rte, nlsr& pnlsr);
24 void removeNpte(string name, RoutingTableEntry& rte, nlsr& pnlsr);
25private:
26 std::list<Npte> npteList;
27};
28
29#endif