ICMPv6 redirected option. More...
#include <icmpv6-header.h>
Public Member Functions | |
Icmpv6OptionRedirected () | |
Constructor. | |
virtual | ~Icmpv6OptionRedirected () |
Destructor. | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
Deserialize the packet. | |
virtual TypeId | GetInstanceTypeId () const |
Get the instance type ID. | |
Ptr< Packet > | GetPacket () const |
Get the redirected packet. | |
virtual uint32_t | GetSerializedSize () const |
Get the serialized size. | |
virtual void | Print (std::ostream &os) const |
Print informations. | |
virtual void | Serialize (Buffer::Iterator start) const |
Serialize the packet. | |
void | SetPacket (Ptr< Packet > packet) |
Set the redirected packet. | |
Public Member Functions inherited from ns3::Icmpv6OptionHeader | |
Icmpv6OptionHeader () | |
Constructor. | |
virtual | ~Icmpv6OptionHeader () |
Destructor. | |
uint8_t | GetLength () const |
Get the length of the option in 8 bytes unit. | |
uint8_t | GetType () const |
Get the type of the option. | |
void | SetLength (uint8_t len) |
Set the length of the option. | |
void | SetType (uint8_t type) |
Set the type of the option. | |
Public Member Functions inherited from ns3::Header | |
virtual | ~Header () |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the UID of this class. |
Private Attributes | |
Ptr< Packet > | m_packet |
The redirected packet. |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
ICMPv6 redirected option.
This type is not accessible from the Config system.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Definition at line 1713 of file icmpv6-header.h.
ns3::Icmpv6OptionRedirected::Icmpv6OptionRedirected | ( | ) |
Constructor.
Definition at line 1722 of file icmpv6-header.cc.
References ns3::Icmpv6Header::ICMPV6_OPT_REDIRECTED, and ns3::Icmpv6OptionHeader::SetType().
|
virtual |
|
virtual |
Deserialize the packet.
start | start offset |
Reimplemented from ns3::Icmpv6OptionHeader.
Definition at line 1773 of file icmpv6-header.cc.
References ns3::Icmpv6OptionHeader::GetLength(), GetSerializedSize(), m_packet, ns3::Buffer::Iterator::Read(), ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU32(), ns3::Buffer::Iterator::ReadU8(), ns3::Icmpv6OptionHeader::SetLength(), ns3::Icmpv6OptionHeader::SetType(), and visualizer.core::start().
|
virtual |
Get the instance type ID.
Reimplemented from ns3::Icmpv6OptionHeader.
Definition at line 1717 of file icmpv6-header.cc.
References GetTypeId().
Get the redirected packet.
Definition at line 1733 of file icmpv6-header.cc.
References m_packet.
|
virtual |
Get the serialized size.
Reimplemented from ns3::Icmpv6OptionHeader.
Definition at line 1750 of file icmpv6-header.cc.
References ns3::Packet::GetSize(), and m_packet.
Referenced by Deserialize().
|
static |
Get the UID of this class.
Reimplemented from ns3::Icmpv6OptionHeader.
Definition at line 1708 of file icmpv6-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
virtual |
Print informations.
os | output stream |
Reimplemented from ns3::Icmpv6OptionHeader.
Definition at line 1745 of file icmpv6-header.cc.
References ns3::Icmpv6OptionHeader::GetLength(), and ns3::Icmpv6OptionHeader::GetType().
|
virtual |
Serialize the packet.
start | start offset |
Reimplemented from ns3::Icmpv6OptionHeader.
Definition at line 1755 of file icmpv6-header.cc.
References ns3::Packet::CopyData(), ns3::Icmpv6OptionHeader::GetLength(), ns3::Packet::GetSize(), ns3::Icmpv6OptionHeader::GetType(), m_packet, NS_LOG_FUNCTION_NOARGS, visualizer.core::start(), ns3::Buffer::Iterator::Write(), ns3::Buffer::Iterator::WriteU16(), ns3::Buffer::Iterator::WriteU32(), and ns3::Buffer::Iterator::WriteU8().
Set the redirected packet.
packet | the redirected packet |
Definition at line 1738 of file icmpv6-header.cc.
References ns3::Packet::GetSize(), m_packet, NS_ASSERT, and ns3::Icmpv6OptionHeader::SetLength().
Referenced by ns3::Icmpv6L4Protocol::SendRedirection().
The redirected packet.
Definition at line 1779 of file icmpv6-header.h.
Referenced by Deserialize(), GetPacket(), GetSerializedSize(), Serialize(), SetPacket(), and ~Icmpv6OptionRedirected().