blob: 8e6cd0acbc8b33365eb911e63c63ba10295ba5c9 [file] [log] [blame]
#ifndef NLSR_NPT_HPP
#define NLSR_NPT_HPP
#include <list>
#include "npte.hpp"
#include "routing-table-entry.hpp"
namespace nlsr {
class Nlsr;
class Npt
{
public:
Npt()
{
}
void
addNpteByDestName(std::string name, std::string destRouter, Nlsr& pnlsr);
void
removeNpte(std::string name, std::string destRouter, Nlsr& pnlsr);
void
updateWithNewRoute(Nlsr& pnlsr);
void
print();
private:
void
addNpte(std::string name, RoutingTableEntry& rte, Nlsr& pnlsr);
void
removeNpte(std::string name, RoutingTableEntry& rte, Nlsr& pnlsr);
private:
std::list<Npte> m_npteList;
};
}//namespace nlsr
#endif //NLSR_NPT_HPP