blob: c8394dc998392fac53e56105c795efd520052a15 [file] [log] [blame]
#ifndef NLSR_NPT_HPP
#define NLSR_NPT_HPP
#include <list>
#include "nlsr_npte.hpp"
#include "nlsr_rte.hpp"
using namespace std;
class Nlsr;
class Npt
{
public:
Npt()
{
}
void addNpte(string name, string destRouter, Nlsr& pnlsr);
void removeNpte(string name, string destRouter, Nlsr& pnlsr);
void updateNptWithNewRoute(Nlsr& pnlsr);
void printNpt();
private:
void addNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr);
void removeNpte(string name, RoutingTableEntry& rte, Nlsr& pnlsr);
private:
std::list<Npte> npteList;
};
#endif