internet: (fixes #1232) Make routerId a static private member of GlobalRouteManager
This commit is contained in:
@@ -25,6 +25,8 @@ NS_LOG_COMPONENT_DEFINE("GlobalRouteManager");
|
||||
//
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
uint32_t GlobalRouteManager::routerId = 0;
|
||||
|
||||
void
|
||||
GlobalRouteManager::DeleteGlobalRoutes()
|
||||
{
|
||||
@@ -50,7 +52,6 @@ uint32_t
|
||||
GlobalRouteManager::AllocateRouterId()
|
||||
{
|
||||
NS_LOG_FUNCTION_NOARGS();
|
||||
static uint32_t routerId = 0;
|
||||
return routerId++;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,9 @@ class GlobalRouteManager
|
||||
* per-node forwarding tables
|
||||
*/
|
||||
static void InitializeRoutes();
|
||||
|
||||
private:
|
||||
static uint32_t routerId; //!< Router ID counter
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
Reference in New Issue
Block a user