|
|
| 22 |
#ifndef GLOBAL_ROUTE_MANAGER_H |
22 |
#ifndef GLOBAL_ROUTE_MANAGER_H |
| 23 |
#define GLOBAL_ROUTE_MANAGER_H |
23 |
#define GLOBAL_ROUTE_MANAGER_H |
| 24 |
|
24 |
|
|
|
25 |
#include "ns3/deprecated.h" |
| 26 |
|
| 25 |
namespace ns3 { |
27 |
namespace ns3 { |
| 26 |
|
28 |
|
| 27 |
/** |
29 |
/** |
|
|
| 43 |
* the nodes in the simulation. Makes all nodes in the simulation into |
45 |
* the nodes in the simulation. Makes all nodes in the simulation into |
| 44 |
* routers. |
46 |
* routers. |
| 45 |
* |
47 |
* |
| 46 |
* All this function does is call the three functions |
48 |
* All this function does is call the functions |
| 47 |
* SelectRouterNodes (), BuildGlobalRoutingDatabase (), and |
49 |
* BuildGlobalRoutingDatabase () and InitializeRoutes (). |
| 48 |
* InitializeRoutes (). |
|
|
| 49 |
* |
50 |
* |
| 50 |
* @see SelectRouterNodes (); |
|
|
| 51 |
* @see BuildGlobalRoutingDatabase (); |
51 |
* @see BuildGlobalRoutingDatabase (); |
| 52 |
* @see InitializeRoutes (); |
52 |
* @see InitializeRoutes (); |
| 53 |
*/ |
53 |
*/ |
| 54 |
static void PopulateRoutingTables (); |
54 |
static void PopulateRoutingTables () NS_DEPRECATED; |
| 55 |
|
55 |
|
| 56 |
/** |
56 |
/** |
| 57 |
*@brief Remove all routes that were previously installed in a prior call |
57 |
*@brief Remove all routes that were previously installed in a prior call |
|
|
| 68 |
* @see BuildGlobalRoutingDatabase (); |
68 |
* @see BuildGlobalRoutingDatabase (); |
| 69 |
* @see InitializeRoutes (); |
69 |
* @see InitializeRoutes (); |
| 70 |
*/ |
70 |
*/ |
| 71 |
static void RecomputeRoutingTables (); |
71 |
static void RecomputeRoutingTables () NS_DEPRECATED; |
| 72 |
|
72 |
|
| 73 |
public: |
73 |
public: |
| 74 |
/** |
74 |
/** |
|
|
| 76 |
*/ |
76 |
*/ |
| 77 |
static uint32_t AllocateRouterId (); |
77 |
static uint32_t AllocateRouterId (); |
| 78 |
|
78 |
|
| 79 |
private: |
|
|
| 80 |
/** |
79 |
/** |
| 81 |
* @brief Delete all static routes on all nodes that have a |
80 |
* @brief Delete all static routes on all nodes that have a |
| 82 |
* GlobalRouterInterface |
81 |
* GlobalRouterInterface |
|
|
| 99 |
*/ |
98 |
*/ |
| 100 |
static void InitializeRoutes (); |
99 |
static void InitializeRoutes (); |
| 101 |
|
100 |
|
|
|
101 |
private: |
| 102 |
/** |
102 |
/** |
| 103 |
* @brief Global Route Manager copy construction is disallowed. There's no |
103 |
* @brief Global Route Manager copy construction is disallowed. There's no |
| 104 |
* need for it and a compiler provided shallow copy would be wrong. |
104 |
* need for it and a compiler provided shallow copy would be wrong. |