|
|
| 23 |
#include "ns3/net-device.h" |
23 |
#include "ns3/net-device.h" |
| 24 |
#include "ns3/ipv4.h" |
24 |
#include "ns3/ipv4.h" |
| 25 |
#include "ns3/ipv4-address-generator.h" |
25 |
#include "ns3/ipv4-address-generator.h" |
|
|
26 |
#include "ns3/simulator.h" |
| 26 |
#include "ipv4-address-helper.h" |
27 |
#include "ipv4-address-helper.h" |
| 27 |
|
28 |
|
| 28 |
NS_LOG_COMPONENT_DEFINE("Ipv4AddressHelper"); |
29 |
NS_LOG_COMPONENT_DEFINE("Ipv4AddressHelper"); |
|
|
| 200 |
NetworkAllocatorHelperTestCase::DoTeardown (void) |
201 |
NetworkAllocatorHelperTestCase::DoTeardown (void) |
| 201 |
{ |
202 |
{ |
| 202 |
Ipv4AddressGenerator::Reset (); |
203 |
Ipv4AddressGenerator::Reset (); |
|
|
204 |
Simulator::Destroy (); |
| 203 |
} |
205 |
} |
| 204 |
bool |
206 |
bool |
| 205 |
NetworkAllocatorHelperTestCase::DoRun (void) |
207 |
NetworkAllocatorHelperTestCase::DoRun (void) |
|
|
| 246 |
AddressAllocatorHelperTestCase::DoTeardown (void) |
248 |
AddressAllocatorHelperTestCase::DoTeardown (void) |
| 247 |
{ |
249 |
{ |
| 248 |
Ipv4AddressGenerator::Reset (); |
250 |
Ipv4AddressGenerator::Reset (); |
|
|
251 |
Simulator::Destroy (); |
| 249 |
} |
252 |
} |
| 250 |
|
253 |
|
| 251 |
bool |
254 |
bool |
|
|
| 337 |
ResetAllocatorHelperTestCase::DoTeardown (void) |
340 |
ResetAllocatorHelperTestCase::DoTeardown (void) |
| 338 |
{ |
341 |
{ |
| 339 |
Ipv4AddressGenerator::Reset (); |
342 |
Ipv4AddressGenerator::Reset (); |
|
|
343 |
Simulator::Destroy (); |
| 340 |
} |
344 |
} |
| 341 |
|
345 |
|
| 342 |
static class Ipv4AddressHelperTestSuite : public TestSuite |
346 |
static class Ipv4AddressHelperTestSuite : public TestSuite |