A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Ipv4AddressGenerator Class Reference

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 bool AddAllocated (const Ipv4Address addr)
static Ipv4Address GetAddress (const Ipv4Mask mask)
static Ipv4Address GetNetwork (const Ipv4Mask mask)
static void Init (const Ipv4Address net, const Ipv4Mask mask, const Ipv4Address addr="0.0.0.1")
static void InitAddress (const Ipv4Address addr, const Ipv4Mask mask)
static Ipv4Address NextAddress (const Ipv4Mask mask)
static Ipv4Address NextNetwork (const Ipv4Mask mask)
static void Reset (void)
static void TestMode (void)

Detailed Description

This generator assigns addresses sequentially from a provided network address; used in topology code.

Definition at line 32 of file ipv4-address-generator.h.

Member Function Documentation

bool ns3::Ipv4AddressGenerator::AddAllocated ( const Ipv4Address  addr)
static

Definition at line 443 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by ns3::AddressCollisionTestCase::DoRun(), and ns3::Ipv4AddressHelper::NewAddress().

+ Here is the caller graph for this function:

Ipv4Address ns3::Ipv4AddressGenerator::GetAddress ( const Ipv4Mask  mask)
static

Definition at line 416 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.

Ipv4Address ns3::Ipv4AddressGenerator::GetNetwork ( const Ipv4Mask  mask)
static

Definition at line 396 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by ns3::NetworkNumberAllocatorTestCase::DoRun().

+ Here is the caller graph for this function:

void ns3::Ipv4AddressGenerator::Init ( const Ipv4Address  net,
const Ipv4Mask  mask,
const Ipv4Address  addr = "0.0.0.1" 
)
static
void ns3::Ipv4AddressGenerator::InitAddress ( const Ipv4Address  addr,
const Ipv4Mask  mask 
)
static

Definition at line 405 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by ns3::ExampleAddressGeneratorTestCase::DoRun().

+ Here is the caller graph for this function:

Ipv4Address ns3::Ipv4AddressGenerator::NextAddress ( const Ipv4Mask  mask)
static
Ipv4Address ns3::Ipv4AddressGenerator::NextNetwork ( const Ipv4Mask  mask)
static
void ns3::Ipv4AddressGenerator::Reset ( void  )
static

Definition at line 434 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.

void ns3::Ipv4AddressGenerator::TestMode ( void  )
static

Definition at line 452 of file ipv4-address-generator.cc.

References NS_LOG_FUNCTION_NOARGS.

Referenced by ns3::AddressCollisionTestCase::DoRun().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: