A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Icmpv6OptionRedirected Class Reference

ICMPv6 redirected option. More...

#include <icmpv6-header.h>

+ Inheritance diagram for ns3::Icmpv6OptionRedirected:
+ Collaboration diagram for ns3::Icmpv6OptionRedirected:

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< PacketGetPacket () 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< Packetm_packet
 The redirected packet.

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
virtual void NotifyConstructionCompleted (void)

Detailed Description

ICMPv6 redirected option.

Definition at line 1713 of file icmpv6-header.h.

Constructor & Destructor Documentation

ns3::Icmpv6OptionRedirected::Icmpv6OptionRedirected ( )

Constructor.

Definition at line 1722 of file icmpv6-header.cc.

References ns3::Icmpv6Header::ICMPV6_OPT_REDIRECTED, and ns3::Icmpv6OptionHeader::SetType().

+ Here is the call graph for this function:

ns3::Icmpv6OptionRedirected::~Icmpv6OptionRedirected ( )
virtual

Destructor.

Definition at line 1728 of file icmpv6-header.cc.

References m_packet.

Member Function Documentation

uint32_t ns3::Icmpv6OptionRedirected::Deserialize ( Buffer::Iterator  start)
virtual
TypeId ns3::Icmpv6OptionRedirected::GetInstanceTypeId ( void  ) const
virtual

Get the instance type ID.

Returns
instance type ID

Reimplemented from ns3::Icmpv6OptionHeader.

Definition at line 1717 of file icmpv6-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

Ptr< Packet > ns3::Icmpv6OptionRedirected::GetPacket ( ) const

Get the redirected packet.

Returns
the redirected packet

Definition at line 1733 of file icmpv6-header.cc.

References m_packet.

uint32_t ns3::Icmpv6OptionRedirected::GetSerializedSize ( void  ) const
virtual

Get the serialized size.

Returns
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TypeId ns3::Icmpv6OptionRedirected::GetTypeId ( void  )
static

Get the UID of this class.

This method returns the TypeId associated to ns3::Icmpv6OptionRedirected.

Returns
UID

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Icmpv6OptionHeader.

Definition at line 1708 of file icmpv6-header.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Icmpv6OptionRedirected::Print ( std::ostream &  os) const
virtual

Print informations.

Parameters
osoutput stream

Reimplemented from ns3::Icmpv6OptionHeader.

Definition at line 1745 of file icmpv6-header.cc.

References ns3::Icmpv6OptionHeader::GetLength(), and ns3::Icmpv6OptionHeader::GetType().

+ Here is the call graph for this function:

void ns3::Icmpv6OptionRedirected::Serialize ( Buffer::Iterator  start) const
virtual
void ns3::Icmpv6OptionRedirected::SetPacket ( Ptr< Packet packet)

Set the redirected packet.

Parameters
packetthe 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Ptr<Packet> ns3::Icmpv6OptionRedirected::m_packet
private

The redirected packet.

Definition at line 1779 of file icmpv6-header.h.

Referenced by Deserialize(), GetPacket(), GetSerializedSize(), Serialize(), SetPacket(), and ~Icmpv6OptionRedirected().


The documentation for this class was generated from the following files: