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