A Discrete-Event Network Simulator
API
ns3::dsr::DsrOptionRerrUnsupportedHeader Class Reference

Route Error (RERR) Unsupported option Message Format. More...

#include "dsr-option-header.h"

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

Public Member Functions

 DsrOptionRerrUnsupportedHeader ()
 Constructor. More...
 
 ~DsrOptionRerrUnsupportedHeader () override
 Destructor. More...
 
uint32_t Deserialize (Buffer::Iterator start) override
 Deserialize the packet. More...
 
Alignment GetAlignment () const override
 Get the Alignment requirement of this option header. More...
 
Ipv4Address GetErrorDst () const override
 Get the error destination ip address. More...
 
Ipv4Address GetErrorSrc () const override
 Get the route error source address. More...
 
TypeId GetInstanceTypeId () const override
 Get the instance type ID. More...
 
uint8_t GetSalvage () const override
 Get the salvage value of the packet. More...
 
uint32_t GetSerializedSize () const override
 Get the serialized size of the packet. More...
 
uint16_t GetUnsupported () const
 Get the unsupported option type value. More...
 
void Print (std::ostream &os) const override
 Print some information about the packet. More...
 
void Serialize (Buffer::Iterator start) const override
 Serialize the packet. More...
 
void SetErrorDst (Ipv4Address errorDstAddress) override
 Set the error destination ip address. More...
 
void SetErrorSrc (Ipv4Address errorSrcAddress) override
 Set the route error source address. More...
 
void SetSalvage (uint8_t salvage) override
 Set the salvage value of the packet. More...
 
void SetUnsupported (uint16_t optionType)
 Set the unsupported option type value. More...
 
- Public Member Functions inherited from ns3::dsr::DsrOptionRerrHeader
 DsrOptionRerrHeader ()
 Constructor. More...
 
 ~DsrOptionRerrHeader () override
 Destructor. More...
 
uint8_t GetErrorType () const
 Get the route error type. More...
 
void SetErrorType (uint8_t errorType)
 Set the route error type. More...
 
- Public Member Functions inherited from ns3::dsr::DsrOptionHeader
 DsrOptionHeader ()
 Constructor. More...
 
 ~DsrOptionHeader () override
 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
 ~Header () override
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 Deserialize the object from a buffer iterator. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator. More...
 
- Public Member Functions inherited from ns3::Chunk
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 Get the value of an attribute, raising fatal errors if unsuccessful. More...
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors. More...
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful. More...
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors. More...
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context. More...
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context. More...
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context. More...
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context. More...
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type identificator. More...
 
- Static Public Member Functions inherited from ns3::dsr::DsrOptionRerrHeader
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 ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId ()
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID. More...
 

Private Attributes

Ipv4Address m_errorDstAddress
 The error destination address. 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...
 
uint16_t m_unsupported
 The unsupported option. More...
 

Additional Inherited Members

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

Detailed Description

Route Error (RERR) Unsupported option Message Format.

 |      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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |  Option Type |  Opt Data Len |   Error Type  |Reservd| Salvage|
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                      Error Source Address                     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                    Error Destination Address                  |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 .                                                               .
 .                    Type-Specific Information                  .
 .                                                               .
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

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

Constructor & Destructor Documentation

◆ DsrOptionRerrUnsupportedHeader()

ns3::dsr::DsrOptionRerrUnsupportedHeader::DsrOptionRerrUnsupportedHeader ( )

Constructor.

Definition at line 1021 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:

◆ ~DsrOptionRerrUnsupportedHeader()

ns3::dsr::DsrOptionRerrUnsupportedHeader::~DsrOptionRerrUnsupportedHeader ( )
override

Destructor.

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

Member Function Documentation

◆ Deserialize()

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

◆ GetAlignment()

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

Get the Alignment requirement of this option header.

Returns
The required alignment

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

◆ GetErrorDst()

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

Get the error destination ip address.

Returns
The error destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorDstAddress.

◆ GetErrorSrc()

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

Get the route error source address.

Returns
The error source address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorSrcAddress.

◆ GetInstanceTypeId()

TypeId ns3::dsr::DsrOptionRerrUnsupportedHeader::GetInstanceTypeId ( void  ) const
overridevirtual

Get the instance type ID.

Returns
instance type ID

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSalvage()

uint8_t ns3::dsr::DsrOptionRerrUnsupportedHeader::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 1040 of file dsr-option-header.cc.

References m_salvage.

◆ GetSerializedSize()

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

Get the serialized size of the packet.

Returns
size

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

Referenced by Deserialize().

+ Here is the caller graph for this function:

◆ GetTypeId()

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

Get the type identificator.

Returns
type identificator

Definition at line 1006 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:

◆ GetUnsupported()

uint16_t ns3::dsr::DsrOptionRerrUnsupportedHeader::GetUnsupported ( ) const

Get the unsupported option type value.

Returns
The unsupported option type value

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

References m_unsupported.

◆ Print()

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

Print some information about the packet.

Parameters
osoutput stream

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Definition at line 1082 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_unsupported.

+ Here is the call graph for this function:

◆ Serialize()

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

◆ SetErrorDst()

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

Set the error destination ip address.

Parameters
errorDstAddressThe error destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorDstAddress.

Referenced by ns3::dsr::DsrRouting::Receive().

+ Here is the caller graph for this function:

◆ SetErrorSrc()

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

Set the route error source address.

Parameters
errorSrcAddressThe error source address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_errorSrcAddress.

Referenced by ns3::dsr::DsrRouting::Receive().

+ Here is the caller graph for this function:

◆ SetSalvage()

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

Set the salvage value of the packet.

Parameters
salvagethe salvage value

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

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

References m_salvage.

Referenced by ns3::dsr::DsrRouting::Receive().

+ Here is the caller graph for this function:

◆ SetUnsupported()

void ns3::dsr::DsrOptionRerrUnsupportedHeader::SetUnsupported ( uint16_t  optionType)

Set the unsupported option type value.

Parameters
optionTypeThe unsupported option type value

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

References m_unsupported, and ns3::unsupported.

Referenced by ns3::dsr::DsrRouting::Receive().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_errorDstAddress

Ipv4Address ns3::dsr::DsrOptionRerrUnsupportedHeader::m_errorDstAddress
private

The error destination address.

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

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

◆ m_errorSrcAddress

Ipv4Address ns3::dsr::DsrOptionRerrUnsupportedHeader::m_errorSrcAddress
private

The error source address.

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

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

◆ m_errorType

uint8_t ns3::dsr::DsrOptionRerrUnsupportedHeader::m_errorType
private

The error type or route error option.

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

Referenced by Print().

◆ m_salvage

uint8_t ns3::dsr::DsrOptionRerrUnsupportedHeader::m_salvage
private

The salavage field.

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

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

◆ m_unsupported

uint16_t ns3::dsr::DsrOptionRerrUnsupportedHeader::m_unsupported
private

The unsupported option.

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

Referenced by Deserialize(), GetUnsupported(), Print(), Serialize(), and SetUnsupported().


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