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

Doxygen introspection did not find any typical Config paths. More...

#include <dsr-option-header.h>

+ Inheritance diagram for ns3::dsr::DsrOptionRerrHeader:
+ Collaboration diagram for ns3::dsr::DsrOptionRerrHeader:

Public Member Functions

 DsrOptionRerrHeader ()
 Constructor. More...
 
virtual ~DsrOptionRerrHeader ()
 Destructor. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start)
 Deserialize the packet. More...
 
virtual Alignment GetAlignment () const
 Get the Alignment requirement of this option header. More...
 
virtual Ipv4Address GetErrorDst () const
 Get the error destination ip address. More...
 
virtual Ipv4Address GetErrorSrc () const
 Get the route error source address. More...
 
uint8_t GetErrorType () const
 Get the route error type. More...
 
virtual TypeId GetInstanceTypeId () const
 Get the instance type ID. More...
 
virtual uint8_t GetSalvage () const
 Get the salvage value of the packet. More...
 
virtual uint32_t GetSerializedSize () const
 Get the serialized size of the packet. More...
 
virtual void Print (std::ostream &os) const
 Print some informations about the packet. More...
 
virtual void Serialize (Buffer::Iterator start) const
 Serialize the packet. More...
 
virtual void SetErrorDst (Ipv4Address errorDstAddress)
 Set the error destination ip address. More...
 
virtual void SetErrorSrc (Ipv4Address errorSrcAddress)
 Set the route error source address. More...
 
void SetErrorType (uint8_t errorType)
 Set the route error type. More...
 
virtual void SetSalvage (uint8_t salvage)
 Set the salvage value of the packet. More...
 
- Public Member Functions inherited from ns3::dsr::DsrOptionHeader
 DsrOptionHeader ()
 Constructor. More...
 
virtual ~DsrOptionHeader ()
 Destructor. More...
 
uint8_t GetLength () const
 Get the option length. More...
 
uint8_t GetType () const
 Get the type of the option. More...
 
void SetLength (uint8_t length)
 Set the option length. More...
 
void SetType (uint8_t type)
 Set the type of the option. More...
 
- Public Member Functions inherited from ns3::Header
virtual ~Header ()
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type identificator. More...
 
- Static Public Member Functions inherited from ns3::dsr::DsrOptionHeader
static TypeId GetTypeId ()
 Get the type identificator. More...
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

Buffer m_errorData
 The anonymous data of this option. More...
 
Ipv4Address m_errorDstAddress
 The error destination address. More...
 
uint16_t m_errorLength
 The specific error message length. More...
 
Ipv4Address m_errorSrcAddress
 The error source address. More...
 
uint8_t m_errorType
 The error type or route error option. More...
 
uint8_t m_salvage
 The salavage field. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

Doxygen introspection did not find any typical Config paths.

Header of Dsr Option Route Error.


Attributes

  • ErrorType: Type of route errors
    • Set with class: ns3::EnumValue
    • Underlying type: Node unreachable|Flow state not supported|Option not supported
    • Initial value: Node unreachable
    • Flags: construct write read

No TraceSources are defined for this type.

Definition at line 726 of file dsr-option-header.h.

Constructor & Destructor Documentation

ns3::dsr::DsrOptionRerrHeader::DsrOptionRerrHeader ( )

Constructor.

Definition at line 683 of file dsr-option-header.cc.

References ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().

+ Here is the call graph for this function:

ns3::dsr::DsrOptionRerrHeader::~DsrOptionRerrHeader ( )
virtual

Destructor.

Definition at line 692 of file dsr-option-header.cc.

Member Function Documentation

DsrOptionHeader::Alignment ns3::dsr::DsrOptionRerrHeader::GetAlignment ( ) const
virtual

Get the Alignment requirement of this option header.

Returns
The required alignment

Reimplemented from ns3::dsr::DsrOptionHeader.

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 783 of file dsr-option-header.cc.

Ipv4Address ns3::dsr::DsrOptionRerrHeader::GetErrorDst ( ) const
virtual

Get the error destination ip address.

Returns
The error destination address

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 731 of file dsr-option-header.cc.

References m_errorDstAddress.

Ipv4Address ns3::dsr::DsrOptionRerrHeader::GetErrorSrc ( ) const
virtual

Get the route error source address.

Returns
The error source address

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 721 of file dsr-option-header.cc.

References m_errorSrcAddress.

uint8_t ns3::dsr::DsrOptionRerrHeader::GetErrorType ( ) const

Get the route error type.

Returns
The error type

Definition at line 701 of file dsr-option-header.cc.

References m_errorType.

Referenced by ns3::dsr::DsrOptionRerrUnreachHeader::Serialize(), and ns3::dsr::DsrOptionRerrUnsupportHeader::Serialize().

+ Here is the caller graph for this function:

TypeId ns3::dsr::DsrOptionRerrHeader::GetInstanceTypeId ( void  ) const
virtual

Get the instance type ID.

Returns
instance type ID

Reimplemented from ns3::dsr::DsrOptionHeader.

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 678 of file dsr-option-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

uint8_t ns3::dsr::DsrOptionRerrHeader::GetSalvage ( ) const
virtual

Get the salvage value of the packet.

Returns
The salvage value of the packet

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 711 of file dsr-option-header.cc.

References m_salvage.

uint32_t ns3::dsr::DsrOptionRerrHeader::GetSerializedSize ( void  ) const
virtual

Get the serialized size of the packet.

Returns
size

Reimplemented from ns3::dsr::DsrOptionHeader.

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 744 of file dsr-option-header.cc.

Referenced by Deserialize().

+ Here is the caller graph for this function:

TypeId ns3::dsr::DsrOptionRerrHeader::GetTypeId ( void  )
static

Get the type identificator.

Returns
type identificator

Definition at line 663 of file dsr-option-header.cc.

References ns3::TypeId::AddConstructor(), ns3::dsr::FLOW_STATE_NOT_SUPPORTED, m_errorType, ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), ns3::dsr::NODE_UNREACHABLE, and ns3::dsr::OPTION_NOT_SUPPORTED.

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Print some informations about the packet.

Parameters
osoutput stream
Returns
info about this packet

Reimplemented from ns3::dsr::DsrOptionHeader.

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 736 of file dsr-option-header.cc.

References ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), m_errorDstAddress, m_errorSrcAddress, m_errorType, and m_salvage.

+ Here is the call graph for this function:

void ns3::dsr::DsrOptionRerrHeader::SetErrorDst ( Ipv4Address  errorDstAddress)
virtual

Set the error destination ip address.

Parameters
errorDstAddressThe error destination address

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 726 of file dsr-option-header.cc.

References m_errorDstAddress.

void ns3::dsr::DsrOptionRerrHeader::SetErrorSrc ( Ipv4Address  errorSrcAddress)
virtual

Set the route error source address.

Parameters
errorSrcAddressThe error source address

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 716 of file dsr-option-header.cc.

References m_errorSrcAddress.

void ns3::dsr::DsrOptionRerrHeader::SetSalvage ( uint8_t  salvage)
virtual

Set the salvage value of the packet.

Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.

Definition at line 706 of file dsr-option-header.cc.

References m_salvage.

Member Data Documentation

Buffer ns3::dsr::DsrOptionRerrHeader::m_errorData
private

The anonymous data of this option.

Definition at line 838 of file dsr-option-header.h.

Referenced by Deserialize(), and Serialize().

Ipv4Address ns3::dsr::DsrOptionRerrHeader::m_errorDstAddress
private

The error destination address.

Definition at line 834 of file dsr-option-header.h.

Referenced by Deserialize(), GetErrorDst(), Print(), Serialize(), and SetErrorDst().

uint16_t ns3::dsr::DsrOptionRerrHeader::m_errorLength
private

The specific error message length.

Definition at line 826 of file dsr-option-header.h.

Referenced by Deserialize().

Ipv4Address ns3::dsr::DsrOptionRerrHeader::m_errorSrcAddress
private

The error source address.

Definition at line 830 of file dsr-option-header.h.

Referenced by Deserialize(), GetErrorSrc(), Print(), Serialize(), and SetErrorSrc().

uint8_t ns3::dsr::DsrOptionRerrHeader::m_errorType
private

The error type or route error option.

Definition at line 818 of file dsr-option-header.h.

Referenced by Deserialize(), GetErrorType(), GetTypeId(), Print(), Serialize(), and SetErrorType().

uint8_t ns3::dsr::DsrOptionRerrHeader::m_salvage
private

The salavage field.

Definition at line 822 of file dsr-option-header.h.

Referenced by Deserialize(), GetSalvage(), Print(), Serialize(), and SetSalvage().


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