Finishing with FIB initialization based on IPv4 global routing controller
Example ccnx-routing-simple.cc shows all necessary steps to make it work.
diff --git a/model/ipv4-global-routing-ordered-nexthops.h b/model/ipv4-global-routing-ordered-nexthops.h
index b52779e..1ae8713 100644
--- a/model/ipv4-global-routing-ordered-nexthops.h
+++ b/model/ipv4-global-routing-ordered-nexthops.h
@@ -47,7 +47,7 @@
*/
class Ipv4GlobalRoutingOrderedNexthops : public Ipv4GlobalRouting
{
-private:
+public:
class i_iface {};
class i_metric {};
class i_index {};
@@ -109,6 +109,9 @@
virtual void DeleteRoutes ();
+ const Ptr<EntryContainer>
+ Lookup (Ipv4Address dest);
+
protected:
virtual Ptr<Ipv4Route> LookupGlobal (Ipv4Address dest, Ptr<NetDevice> oif = 0);