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)
#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.
uint8_t GetLength(void) const
Get the length of the underlying address.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
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.
iterator in a Buffer instance
a polymophic address class
void WriteHtonU16(uint16_t data)
void Next(void)
go forward by one byte
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ipv4 addresses are stored in host order in this class.
void WriteU8(uint8_t data)
uint16_t ReadNtohU16(void)
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.