Adding waf script for building
diff --git a/src/nlsr_fib.hpp b/src/nlsr_fib.hpp
new file mode 100644
index 0000000..453b7db
--- /dev/null
+++ b/src/nlsr_fib.hpp
@@ -0,0 +1,39 @@
+#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 scheduleFibRefreshing(nlsr& pnlsr, int refreshTime);
+ void cleanFib();
+ void setFibEntryRefreshTime(int fert)
+ {
+ fibEntryRefreshTime=fert;
+ }
+
+ void printFib();
+
+private:
+ void removeFibEntryHop(Nhl& nl, int doNotRemoveHopFaceId);
+ int getNumberOfFacesForName(Nhl& nextHopList, int maxFacesPerPrefix);
+ void refreshFib(nlsr& pnlsr);
+
+private:
+ std::list<FibEntry> fibTable;
+ int fibEntryRefreshTime;
+};
+
+#endif