Public Member Functions | Static Public Member Functions

ns3::Icmpv6OptionRedirected Class Reference

ICMPv6 redirected option. More...

#include <icmpv6-header.h>

Inheritance diagram for ns3::Icmpv6OptionRedirected:
Inheritance graph
[legend]
Collaboration diagram for ns3::Icmpv6OptionRedirected:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
 Icmpv6OptionRedirected ()
 Constructor.
virtual ~Icmpv6OptionRedirected ()
 Destructor.
Ptr< PacketGetPacket () const
 Get the redirected packet.
void SetPacket (Ptr< Packet > packet)
 Set the redirected packet.
virtual void Print (std::ostream &os) const
 Print informations.
virtual uint32_t GetSerializedSize () const
 Get the serialized size.
virtual void Serialize (Buffer::Iterator start) const
 Serialize the packet.
virtual uint32_t Deserialize (Buffer::Iterator start)
 Deserialize the packet.

Static Public Member Functions

static TypeId GetTypeId ()
 Get the UID of this class.

Detailed Description

ICMPv6 redirected option.


Member Function Documentation

virtual uint32_t ns3::Icmpv6OptionRedirected::Deserialize ( Buffer::Iterator  start ) [virtual]

Deserialize the packet.

Parameters:
startstart offset
Returns:
length of packet

Reimplemented from ns3::Icmpv6OptionHeader.

virtual TypeId ns3::Icmpv6OptionRedirected::GetInstanceTypeId (  ) const [virtual]

Get the instance type ID.

Returns:
instance type ID

Reimplemented from ns3::Icmpv6OptionHeader.

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

Get the redirected packet.

Returns:
the redirected packet
virtual uint32_t ns3::Icmpv6OptionRedirected::GetSerializedSize (  ) const [virtual]

Get the serialized size.

Returns:
serialized size

Reimplemented from ns3::Icmpv6OptionHeader.

static 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.

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

Print informations.

Parameters:
osoutput stream

Reimplemented from ns3::Icmpv6OptionHeader.

virtual void ns3::Icmpv6OptionRedirected::Serialize ( Buffer::Iterator  start ) const [virtual]

Serialize the packet.

Parameters:
startstart offset

Reimplemented from ns3::Icmpv6OptionHeader.

void ns3::Icmpv6OptionRedirected::SetPacket ( Ptr< Packet packet )

Set the redirected packet.

Parameters:
packetthe redirected packet

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