ns-3
ns3::Icmpv6DestinationUnreachable Class Reference

ICMPv6 Error Destination Unreachable header. More...

#include <icmpv6-header.h>

Inheritance diagram for ns3::Icmpv6DestinationUnreachable:
Collaboration diagram for ns3::Icmpv6DestinationUnreachable:

List of all members.

Public Member Functions

 Icmpv6DestinationUnreachable ()
 Constructor.
virtual ~Icmpv6DestinationUnreachable ()
 Destructor.
virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
Ptr< PacketGetPacket () const
 Get the incorrect packet.
void SetPacket (Ptr< Packet > p)
 Set the incorrect 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 Error Destination Unreachable header.


Member Function Documentation

Get the instance type ID.

Returns:
instance type ID

Reimplemented from ns3::Icmpv6Header.

References GetTypeId().

Get the incorrect packet.

Returns:
the incorrect packet
uint32_t ns3::Icmpv6DestinationUnreachable::GetSerializedSize ( void  ) const [virtual]

Get the serialized size.

Returns:
serialized size

Reimplemented from ns3::Icmpv6Header.

References ns3::Packet::GetSize().

Referenced by Deserialize().

Get the UID of this class.

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

Returns:
UID

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

Reimplemented from ns3::Icmpv6Header.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

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

Print informations.

Parameters:
osoutput stream

Reimplemented from ns3::Icmpv6Header.

References ns3::Icmpv6Header::GetChecksum(), ns3::Icmpv6Header::GetCode(), and ns3::Icmpv6Header::GetType().

Set the incorrect packet.

Parameters:
pthe incorrect packet

References ns3::Packet::GetSize(), and NS_ASSERT.

Referenced by ns3::Icmpv6L4Protocol::SendErrorDestinationUnreachable().


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