22 #include "ns3/address-utils.h"
23 #include "ns3/assert.h"
36 Address destinationHardwareAddress,
40 << destinationHardwareAddress << destinationProtocolAddress);
51 Address destinationHardwareAddress,
55 << destinationHardwareAddress << destinationProtocolAddress);
110 .SetGroupName(
"Internet")
152 uint32_t length = 16;
185 uint32_t hardwareAddressLen = i.
ReadU8();
186 uint32_t protocolAddressLen = i.
ReadU8();
194 if (protocolType != 0x800 || protocolAddressLen != 4)
a polymophic address class
uint8_t GetLength() const
Get the length of the underlying address.
iterator in a Buffer instance
void WriteU8(uint8_t data)
void WriteHtonU16(uint16_t data)
void Next()
go forward by one byte
Ipv4 addresses are stored in host order in this class.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#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.