remove routing environment, move router interface creation to global-route-manager

This commit is contained in:
Craig Dowell committed 2007-07-27 20:34:25 -07:00
1 parent 6bc8b4de6d
commit 2b2bb45227
10 files changed
+127 -112

No files matched your search

-13
View File
@@ -23,8 +23,6 @@
#include "ns3/composite-trace-resolver.h"
#include "ns3/net-device.h"
#include "ns3/routing-environment.h"
#include "ns3/global-router-interface.h"
#include "l3-demux.h"
#include "ipv4-l4-demux.h"
@@ -77,17 +75,6 @@ InternetNode::Construct (void)
Object::AddInterface (udpImpl);
Object::AddInterface (l3Demux);
Object::AddInterface (ipv4L4Demux);
//
// If static routing has been enabled via bind(), all nodes will have the
// capacity to participate in the global static routing scheme. The presence
// of the StaticRouter interface tells the route manager that it needs to
// ask a given node about any link state records that it may want to advertise.
//
if (RoutingEnvironment::GlobalRoutingEnabled())
{
Ptr<GlobalRouter> globalRouter = Create<GlobalRouter> (this);
Object::AddInterface (globalRouter);
}
}
TraceResolver *