blob: f1f54edb3389c8798f67f882c4d5c89c17cdee49 [file] [log] [blame]
#ifndef NLSR_FIB_HPP
#define NLSR_FIB_HPP
#include <list>
#include "nlsr_fe.hpp"
class nlsr;
using namespace std;
class Fib
{
public:
Fib()
{
}
void removeFromFib(string name);
void updateFib(string name, Nhl& nextHopList, int maxFacesPerPrefix);
void cleanFib();
void printFib();
private:
void removeFibEntryHop(Nhl& nl, int doNotRemoveHop);
int getNumberOfFacesForName(Nhl& nextHopList, int maxFacesPerPrefix);
private:
std::list<FibEntry> fibTable;
};
#endif