25 #include "ns3/assert.h"
27 #include "ns3/simulator.h"
28 #include "ns3/address-utils.h"
56 for (i = 0; i < 64; i++)
60 for (i = 0; i < 128; i++)
251 for (i = 0; i <
OP_END; i++)
266 .SetGroupName (
"Internet-Apps")
279 os <<
"(type=" <<
m_op <<
")";
354 uint32_t len, clen =
start.GetSize ();
a polymophic address class
uint8_t GetLength(void) const
Get the length of the underlying address.
uint32_t CopyFrom(const uint8_t *buffer, uint8_t len)
uint32_t CopyTo(uint8_t buffer[MAX_SIZE]) const
Copy the address bytes into a buffer.
iterator in a Buffer instance
void Write(uint8_t const *buffer, uint32_t size)
void WriteU32(uint32_t data)
uint16_t ReadNtohU16(void)
void WriteU8(uint8_t data)
void WriteU16(uint16_t data)
void Read(uint8_t *buffer, uint32_t size)
void WriteHtonU16(uint16_t data)
void WriteHtonU32(uint32_t data)
uint32_t ReadNtohU32(void)
Ipv4 addresses are stored in host order in this class.
static Time Now(void)
Return the current simulation virtual time.
double GetSeconds(void) const
Get an approximation of the time stored in this instance in the indicated unit.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.