21 #include "ns3/assert.h"
22 #include "ns3/address-utils.h"
35 Address destinationHardwareAddress,
38 NS_LOG_FUNCTION (
this << sourceHardwareAddress << sourceProtocolAddress << destinationHardwareAddress << destinationProtocolAddress);
48 Address destinationHardwareAddress,
51 NS_LOG_FUNCTION (
this << sourceHardwareAddress << sourceProtocolAddress << destinationHardwareAddress << destinationProtocolAddress);
101 .SetGroupName (
"Internet")
142 uint32_t length = 16;
175 uint32_t hardwareAddressLen = i.
ReadU8 ();
176 uint32_t protocolAddressLen = i.
ReadU8 ();
184 if (protocolType != 0x800 || protocolAddressLen != 4)
a polymophic address class
uint8_t GetLength(void) const
Get the length of the underlying address.
iterator in a Buffer instance
uint16_t ReadNtohU16(void)
void WriteU8(uint8_t data)
void Next(void)
go forward by one byte
void WriteHtonU16(uint16_t data)
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.