A Discrete-Event Network Simulator
API
ipv4-address.cc File Reference
#include <cstdlib>
#include "ns3/log.h"
#include "ipv4-address.h"
#include "ns3/assert.h"
+ Include dependency graph for ipv4-address.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Macros

#define ASCII_DOT   (0x2e)
 
#define ASCII_SLASH   (0x2f)
 
#define ASCII_ZERO   (0x30)
 

Functions

static uint32_t ns3::AsciiToIpv4Host (char const *address)
 Converts a string representing an IP address into the address. More...
 
Ptr< const AttributeChecker > ns3::MakeIpv4AddressChecker (void)
 
Ptr< const AttributeChecker > ns3::MakeIpv4MaskChecker (void)
 
std::ostream & ns3::operator<< (std::ostream &os, Ipv4Address const &address)
 Stream insertion operator. More...
 
std::ostream & ns3::operator<< (std::ostream &os, Ipv4Mask const &mask)
 Stream insertion operator. More...
 
std::istream & ns3::operator>> (std::istream &is, Ipv4Address &address)
 Stream extraction operator. More...
 
std::istream & ns3::operator>> (std::istream &is, Ipv4Mask &mask)
 Stream extraction operator. More...
 

Variables

static constexpr uint32_t ns3::UNINITIALIZED = 0x66666666U
 Value of a not-yet-initialized IPv4 address, corresponding to 102.102.102.102. More...
 

Macro Definition Documentation

◆ ASCII_DOT

#define ASCII_DOT   (0x2e)

Definition at line 30 of file ipv4-address.cc.

◆ ASCII_SLASH

#define ASCII_SLASH   (0x2f)

Definition at line 32 of file ipv4-address.cc.

◆ ASCII_ZERO

#define ASCII_ZERO   (0x30)

Definition at line 31 of file ipv4-address.cc.