112 namespace addressUtils {
 
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
 
uint8_t GetLength(void) const
Get the length of the underlying address. 
 
bool IsMulticast(const Address &ad)
Address family-independent test for a multicast address. 
 
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer. 
 
void GetBytes(uint8_t buf[16]) const
Get the bytes corresponding to the address. 
 
void CopyFrom(const uint8_t buffer[2])
 
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer. 
 
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name. 
 
void CopyTo(uint8_t buffer[2]) const
 
uint32_t ReadNtohU32(void)
 
iterator in a Buffer instance 
 
a polymophic address class 
 
bool IsMulticast(void) const
 
void CopyTo(uint8_t buffer[6]) const
 
void CopyTo(uint8_t buffer[8]) const
 
void CopyFrom(const uint8_t buffer[8])
 
void Set(char const *address)
Sets an Ipv6Address by parsing the input C-string. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
static InetSocketAddress ConvertFrom(const Address &address)
Returns an InetSocketAddress which corresponds to the input Address. 
 
uint32_t CopyFrom(const uint8_t *buffer, uint8_t len)
 
void Read(uint8_t *buffer, uint32_t size)
 
This class can contain 16 bit addresses. 
 
void CopyFrom(const uint8_t buffer[6])
 
void WriteHtonU32(uint32_t data)
 
void Set(uint32_t address)
input address is in host order. 
 
Describes an IPv6 address. 
 
Ipv4 addresses are stored in host order in this class. 
 
void Write(uint8_t const *buffer, uint32_t size)
 
uint32_t Get(void) const
Get the host-order 32-bit IP address. 
 
static bool IsMatchingType(const Address &address)
 
Ipv4Address GetIpv4(void) const
 
uint32_t CopyTo(uint8_t buffer[MAX_SIZE]) const
Copy the address bytes into a buffer.