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

#include <icmpv4.h>

+ Inheritance diagram for ns3::Icmpv4DestinationUnreachable:
+ Collaboration diagram for ns3::Icmpv4DestinationUnreachable:

Public Types

enum  {
  NET_UNREACHABLE = 0, HOST_UNREACHABLE = 1, PROTOCOL_UNREACHABLE = 2, PORT_UNREACHABLE = 3,
  FRAG_NEEDED = 4, SOURCE_ROUTE_FAILED = 5
}

Public Member Functions

 Icmpv4DestinationUnreachable ()
virtual ~Icmpv4DestinationUnreachable ()
void GetData (uint8_t payload[8]) const
Ipv4Header GetHeader (void) const
uint16_t GetNextHopMtu (void) const
void SetData (Ptr< const Packet > data)
void SetHeader (Ipv4Header header)
void SetNextHopMtu (uint16_t mtu)
- Public Member Functions inherited from ns3::Header
virtual ~Header ()
virtual uint32_t Deserialize (Buffer::Iterator start)=0
virtual uint32_t GetSerializedSize (void) const =0
virtual void Print (std::ostream &os) const =0
virtual void Serialize (Buffer::Iterator start) const =0

Static Public Member Functions

static TypeId GetTypeId (void)

Private Member Functions

virtual uint32_t Deserialize (Buffer::Iterator start)
virtual TypeId GetInstanceTypeId (void) const
virtual uint32_t GetSerializedSize (void) const
virtual void Print (std::ostream &os) const
virtual void Serialize (Buffer::Iterator start) const

Private Attributes

uint8_t m_data [8]
Ipv4Header m_header
uint16_t m_nextHopMtu

Additional Inherited Members

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

Detailed Description

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 92 of file icmpv4.h.

Member Enumeration Documentation

anonymous enum
Enumerator:
NET_UNREACHABLE 
HOST_UNREACHABLE 
PROTOCOL_UNREACHABLE 
PORT_UNREACHABLE 
FRAG_NEEDED 
SOURCE_ROUTE_FAILED 

Definition at line 95 of file icmpv4.h.

Constructor & Destructor Documentation

ns3::Icmpv4DestinationUnreachable::Icmpv4DestinationUnreachable ( )

Definition at line 254 of file icmpv4.cc.

References m_data.

ns3::Icmpv4DestinationUnreachable::~Icmpv4DestinationUnreachable ( )
virtual

Definition at line 297 of file icmpv4.cc.

Member Function Documentation

uint32_t ns3::Icmpv4DestinationUnreachable::Deserialize ( Buffer::Iterator  start)
privatevirtual
void ns3::Icmpv4DestinationUnreachable::GetData ( uint8_t  payload[8]) const

Definition at line 286 of file icmpv4.cc.

References m_data.

Referenced by ns3::Icmpv4L4Protocol::HandleDestUnreach().

+ Here is the caller graph for this function:

Ipv4Header ns3::Icmpv4DestinationUnreachable::GetHeader ( void  ) const

Definition at line 291 of file icmpv4.cc.

References m_header.

Referenced by ns3::Icmpv4L4Protocol::HandleDestUnreach().

+ Here is the caller graph for this function:

TypeId ns3::Icmpv4DestinationUnreachable::GetInstanceTypeId ( void  ) const
privatevirtual

Definition at line 301 of file icmpv4.cc.

References GetTypeId().

+ Here is the call graph for this function:

uint16_t ns3::Icmpv4DestinationUnreachable::GetNextHopMtu ( void  ) const

Definition at line 270 of file icmpv4.cc.

References m_nextHopMtu.

Referenced by ns3::Icmpv4L4Protocol::HandleDestUnreach().

+ Here is the caller graph for this function:

uint32_t ns3::Icmpv4DestinationUnreachable::GetSerializedSize ( void  ) const
privatevirtual

Definition at line 306 of file icmpv4.cc.

References ns3::Ipv4Header::GetSerializedSize(), and m_header.

+ Here is the call graph for this function:

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

Reimplemented from ns3::Header.

Definition at line 246 of file icmpv4.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::Icmpv4DestinationUnreachable::Print ( std::ostream &  os) const
privatevirtual

Definition at line 336 of file icmpv4.cc.

References m_data, m_header, and ns3::Ipv4Header::Print().

+ Here is the call graph for this function:

void ns3::Icmpv4DestinationUnreachable::Serialize ( Buffer::Iterator  start) const
privatevirtual
void ns3::Icmpv4DestinationUnreachable::SetData ( Ptr< const Packet data)

Definition at line 276 of file icmpv4.cc.

References ns3::Packet::CopyData(), and m_data.

+ Here is the call graph for this function:

void ns3::Icmpv4DestinationUnreachable::SetHeader ( Ipv4Header  header)

Definition at line 281 of file icmpv4.cc.

References m_header.

void ns3::Icmpv4DestinationUnreachable::SetNextHopMtu ( uint16_t  mtu)

Definition at line 265 of file icmpv4.cc.

References m_nextHopMtu.

Referenced by ns3::Icmpv4L4Protocol::SendDestUnreach().

+ Here is the caller graph for this function:

Member Data Documentation

uint8_t ns3::Icmpv4DestinationUnreachable::m_data[8]
private

Definition at line 125 of file icmpv4.h.

Referenced by Deserialize(), GetData(), Icmpv4DestinationUnreachable(), Print(), Serialize(), and SetData().

Ipv4Header ns3::Icmpv4DestinationUnreachable::m_header
private

Definition at line 124 of file icmpv4.h.

Referenced by Deserialize(), GetHeader(), GetSerializedSize(), Print(), Serialize(), and SetHeader().

uint16_t ns3::Icmpv4DestinationUnreachable::m_nextHopMtu
private

Definition at line 123 of file icmpv4.h.

Referenced by Deserialize(), GetNextHopMtu(), Serialize(), and SetNextHopMtu().


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