A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::dsr::DsrOptionRerrUnreachHeader Class Reference

Route Error (RERR) Unreachable node address option Message Format. More...

#include "dsr-option-header.h"

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

Public Member Functions

 DsrOptionRerrUnreachHeader ()
 Constructor.
 
 ~DsrOptionRerrUnreachHeader () override
 Destructor.
 
uint32_t Deserialize (Buffer::Iterator start) override
 Deserialize the packet.
 
Alignment GetAlignment () const override
 Get the Alignment requirement of this option header.
 
Ipv4Address GetErrorDst () const override
 Get the error destination ip address.
 
Ipv4Address GetErrorSrc () const override
 Get the route error source address.
 
TypeId GetInstanceTypeId () const override
 Get the instance type ID.
 
Ipv4Address GetOriginalDst () const
 Get the unreachable node ip address.
 
uint8_t GetSalvage () const override
 Get the salvage value of the packet.
 
uint32_t GetSerializedSize () const override
 Get the serialized size of the packet.
 
Ipv4Address GetUnreachNode () const
 Get the unreachable node ip address.
 
void Print (std::ostream &os) const override
 Print some information about the packet.
 
void Serialize (Buffer::Iterator start) const override
 Serialize the packet.
 
void SetErrorDst (Ipv4Address errorDstAddress) override
 Set the error destination ip address.
 
void SetErrorSrc (Ipv4Address errorSrcAddress) override
 Set the route error source address.
 
void SetOriginalDst (Ipv4Address originalDst)
 Set the unreachable node ip address.
 
void SetSalvage (uint8_t salvage) override
 Set the salvage value of the packet.
 
void SetUnreachNode (Ipv4Address unreachNode)
 Set the unreachable node ip address.
 
- Public Member Functions inherited from ns3::dsr::DsrOptionRerrHeader
 DsrOptionRerrHeader ()
 Constructor.
 
 ~DsrOptionRerrHeader () override
 Destructor.
 
uint8_t GetErrorType () const
 Get the route error type.
 
void SetErrorType (uint8_t errorType)
 Set the route error type.
 
- Public Member Functions inherited from ns3::dsr::DsrOptionHeader
 DsrOptionHeader ()
 Constructor.
 
 ~DsrOptionHeader () override
 Destructor.
 
uint8_t GetLength () const
 Get the option length.
 
uint8_t GetType () const
 Get the type of the option.
 
void SetLength (uint8_t length)
 Set the option length.
 
void SetType (uint8_t type)
 Set the type of the option.
 
- Public Member Functions inherited from ns3::Header
 ~Header () override
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

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

Private Attributes

Ipv4Address m_errorDstAddress
 The error destination address.
 
Ipv4Address m_errorSrcAddress
 The error source address.
 
uint8_t m_errorType
 The error type or route error option.
 
Ipv4Address m_originalDst
 The original destination address.
 
uint8_t m_salvage
 The salvage field.
 
Ipv4Address m_unreachNode
 The unreachable node address.
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Detailed Description

Route Error (RERR) Unreachable node address option Message Format.

Introspection did not find any typical Config paths.

Route Error Unreachable type-specific info field

|      0        |      1        |      2        |      3        |
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                    Unreachable Node Address                   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


No Attributes are defined for this type.
No TraceSources are defined for this type.
Group: Dsr

Size of this type is 144 bytes (on a 64-bit architecture).

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

Constructor & Destructor Documentation

◆ DsrOptionRerrUnreachHeader()

ns3::dsr::DsrOptionRerrUnreachHeader::DsrOptionRerrUnreachHeader ( )

Constructor.

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

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

+ Here is the call graph for this function:

◆ ~DsrOptionRerrUnreachHeader()

ns3::dsr::DsrOptionRerrUnreachHeader::~DsrOptionRerrUnreachHeader ( )
override

Destructor.

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

Member Function Documentation

◆ Deserialize()

uint32_t ns3::dsr::DsrOptionRerrUnreachHeader::Deserialize ( Buffer::Iterator start)
overridevirtual

Deserialize the packet.

Parameters
startBuffer iterator
Returns
size of the packet

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References GetSerializedSize(), m_errorDstAddress, m_errorSrcAddress, m_originalDst, m_salvage, m_unreachNode, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadU8(), ns3::dsr::DsrOptionRerrHeader::SetErrorType(), ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().

+ Here is the call graph for this function:

◆ GetAlignment()

DsrOptionHeader::Alignment ns3::dsr::DsrOptionRerrUnreachHeader::GetAlignment ( ) const
overridevirtual

Get the Alignment requirement of this option header.

Returns
The required alignment

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

◆ GetErrorDst()

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetErrorDst ( ) const
overridevirtual

Get the error destination ip address.

Returns
The error destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorDstAddress.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

◆ GetErrorSrc()

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetErrorSrc ( ) const
overridevirtual

Get the route error source address.

Returns
The error source address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorSrcAddress.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

◆ GetInstanceTypeId()

TypeId ns3::dsr::DsrOptionRerrUnreachHeader::GetInstanceTypeId ( ) const
overridevirtual

Get the instance type ID.

Returns
instance type ID

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References GetTypeId().

+ Here is the call graph for this function:

◆ GetOriginalDst()

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetOriginalDst ( ) const

Get the unreachable node ip address.

Returns
The unreachable ip address

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

References m_originalDst.

Referenced by ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

◆ GetSalvage()

uint8_t ns3::dsr::DsrOptionRerrUnreachHeader::GetSalvage ( ) const
overridevirtual

Get the salvage value of the packet.

Returns
The salvage value of the packet

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_salvage.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::dsr::DsrOptionRerrUnreachHeader::GetSerializedSize ( ) const
overridevirtual

Get the serialized size of the packet.

Returns
size

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

Referenced by Deserialize(), and ns3::dsr::DsrOptionRerr::Process().

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::dsr::DsrOptionRerrUnreachHeader::GetTypeId ( )
static

Get the type identificator.

Returns
type identificator

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

References ns3::TypeId::AddConstructor().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUnreachNode()

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetUnreachNode ( ) const

Get the unreachable node ip address.

Returns
The unreachable ip address

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

References m_unreachNode.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().

+ Here is the caller graph for this function:

◆ Print()

void ns3::dsr::DsrOptionRerrUnreachHeader::Print ( std::ostream & os) const
overridevirtual

Print some information about the packet.

Parameters
osoutput stream

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

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

+ Here is the call graph for this function:

◆ Serialize()

void ns3::dsr::DsrOptionRerrUnreachHeader::Serialize ( Buffer::Iterator start) const
overridevirtual

Serialize the packet.

Parameters
startBuffer iterator

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References ns3::dsr::DsrOptionRerrHeader::GetErrorType(), ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), m_errorDstAddress, m_errorSrcAddress, m_originalDst, m_salvage, m_unreachNode, ns3::WriteTo(), and ns3::Buffer::Iterator::WriteU8().

+ Here is the call graph for this function:

◆ SetErrorDst()

void ns3::dsr::DsrOptionRerrUnreachHeader::SetErrorDst ( Ipv4Address errorDstAddress)
overridevirtual

Set the error destination ip address.

Parameters
errorDstAddressThe error destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorDstAddress.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().

+ Here is the caller graph for this function:

◆ SetErrorSrc()

void ns3::dsr::DsrOptionRerrUnreachHeader::SetErrorSrc ( Ipv4Address errorSrcAddress)
overridevirtual

Set the route error source address.

Parameters
errorSrcAddressThe error source address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorSrcAddress.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().

+ Here is the caller graph for this function:

◆ SetOriginalDst()

void ns3::dsr::DsrOptionRerrUnreachHeader::SetOriginalDst ( Ipv4Address originalDst)

Set the unreachable node ip address.

Parameters
originalDstThe unreachable ip address

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

References m_originalDst.

Referenced by ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().

+ Here is the caller graph for this function:

◆ SetSalvage()

void ns3::dsr::DsrOptionRerrUnreachHeader::SetSalvage ( uint8_t salvage)
overridevirtual

Set the salvage value of the packet.

Parameters
salvageThe salvage value of the packet

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_salvage.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().

+ Here is the caller graph for this function:

◆ SetUnreachNode()

void ns3::dsr::DsrOptionRerrUnreachHeader::SetUnreachNode ( Ipv4Address unreachNode)

Set the unreachable node ip address.

Parameters
unreachNodeThe unreachable ip address

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

References m_unreachNode.

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_errorDstAddress

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::m_errorDstAddress
private

The error destination address.

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

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

◆ m_errorSrcAddress

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::m_errorSrcAddress
private

The error source address.

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

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

◆ m_errorType

uint8_t ns3::dsr::DsrOptionRerrUnreachHeader::m_errorType
private

The error type or route error option.

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

Referenced by Print().

◆ m_originalDst

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::m_originalDst
private

The original destination address.

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

Referenced by Deserialize(), GetOriginalDst(), Serialize(), and SetOriginalDst().

◆ m_salvage

uint8_t ns3::dsr::DsrOptionRerrUnreachHeader::m_salvage
private

The salvage field.

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

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

◆ m_unreachNode

Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::m_unreachNode
private

The unreachable node address.

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

Referenced by Deserialize(), GetUnreachNode(), Print(), Serialize(), and SetUnreachNode().


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