This generator assigns addresses sequentially from a provided network address; used in topology code. More...
#include <ipv4-address-generator.h>
Static Public Member Functions | |
static void | Init (const Ipv4Address net, const Ipv4Mask mask, const Ipv4Address addr="0.0.0.1") |
static Ipv4Address | NextNetwork (const Ipv4Mask mask) |
static Ipv4Address | GetNetwork (const Ipv4Mask mask) |
static void | InitAddress (const Ipv4Address addr, const Ipv4Mask mask) |
static Ipv4Address | NextAddress (const Ipv4Mask mask) |
static Ipv4Address | GetAddress (const Ipv4Mask mask) |
static void | Reset (void) |
static bool | AddAllocated (const Ipv4Address addr) |
static void | TestMode (void) |
This generator assigns addresses sequentially from a provided network address; used in topology code.
Definition at line 32 of file ipv4-address-generator.h.
bool ns3::Ipv4AddressGenerator::AddAllocated | ( | const Ipv4Address | addr | ) | [static] |
Definition at line 458 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressHelper::NewAddress(), and ns3::Ipv4AddressGeneratorTest::RunTests().
Ipv4Address ns3::Ipv4AddressGenerator::GetAddress | ( | const Ipv4Mask | mask | ) | [static] |
Definition at line 431 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Ipv4Address ns3::Ipv4AddressGenerator::GetNetwork | ( | const Ipv4Mask | mask | ) | [static] |
Definition at line 411 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests().
void ns3::Ipv4AddressGenerator::Init | ( | const Ipv4Address | net, | |
const Ipv4Mask | mask, | |||
const Ipv4Address | addr = "0.0.0.1" | |||
) | [static] |
Definition at line 390 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests().
void ns3::Ipv4AddressGenerator::InitAddress | ( | const Ipv4Address | addr, | |
const Ipv4Mask | mask | |||
) | [static] |
Definition at line 420 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests().
Ipv4Address ns3::Ipv4AddressGenerator::NextAddress | ( | const Ipv4Mask | mask | ) | [static] |
Definition at line 440 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests().
Ipv4Address ns3::Ipv4AddressGenerator::NextNetwork | ( | const Ipv4Mask | mask | ) | [static] |
Definition at line 402 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests().
void ns3::Ipv4AddressGenerator::Reset | ( | void | ) | [static] |
Definition at line 449 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests(), and ns3::AddressHelperTest::RunTests().
void ns3::Ipv4AddressGenerator::TestMode | ( | void | ) | [static] |
Definition at line 467 of file ipv4-address-generator.cc.
References ns3::TimeStepPrecision::Get(), and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::Ipv4AddressGeneratorTest::RunTests().