internet: Fix global routing when using the multithreaded simulator
This commit is contained in:
@@ -710,12 +710,14 @@ GlobalRouteManagerImpl::InitializeRoutes ()
|
||||
Ptr<GlobalRouter> rtr =
|
||||
node->GetObject<GlobalRouter> ();
|
||||
|
||||
#ifdef NS3_MPI
|
||||
uint32_t systemId = Simulator::GetSystemId ();
|
||||
// Ignore nodes that are not assigned to our systemId (distributed sim)
|
||||
if (node->GetSystemId () != systemId)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
//
|
||||
// if the node has a global router interface, then run the global routing
|
||||
|
||||
Reference in New Issue
Block a user