|
|
| 171 |
|
171 |
|
| 172 |
std::vector<InternetStackHelper::Trace> InternetStackHelper::m_traces; |
172 |
std::vector<InternetStackHelper::Trace> InternetStackHelper::m_traces; |
| 173 |
std::string InternetStackHelper::m_pcapBaseFilename; |
173 |
std::string InternetStackHelper::m_pcapBaseFilename; |
|
|
174 |
bool InternetStackHelper::m_isInitialized = false; |
| 174 |
|
175 |
|
| 175 |
InternetStackHelper::InternetStackHelper () |
176 |
InternetStackHelper::InternetStackHelper () |
| 176 |
{ |
177 |
{ |
|
Lines 178-185
InternetStackHelper::InternetStackHelper
|
Link Here
|
|---|
|
| 178 |
static Ipv4StaticRoutingHelper staticRouting; |
179 |
static Ipv4StaticRoutingHelper staticRouting; |
| 179 |
static Ipv4GlobalRoutingHelper globalRouting; |
180 |
static Ipv4GlobalRoutingHelper globalRouting; |
| 180 |
static Ipv4ListRoutingHelper listRouting; |
181 |
static Ipv4ListRoutingHelper listRouting; |
| 181 |
listRouting.Add (staticRouting, 0); |
182 |
if (m_isInitialized == false) |
| 182 |
listRouting.Add (globalRouting, -10); |
183 |
{ |
|
|
184 |
// Only add these once |
| 185 |
listRouting.Add (staticRouting, 0); |
| 186 |
listRouting.Add (globalRouting, -10); |
| 187 |
m_isInitialized = true; |
| 188 |
} |
| 183 |
SetRoutingHelper (listRouting); |
189 |
SetRoutingHelper (listRouting); |
| 184 |
} |
190 |
} |
| 185 |
|
191 |
|