Route Error (RERR) Unsupported option Message Format. More...
#include "dsr-option-header.h"
Public Member Functions | |
DsrOptionRerrUnsupportedHeader () | |
Constructor. | |
~DsrOptionRerrUnsupportedHeader () 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. | |
uint8_t | GetSalvage () const override |
Get the salvage value of the packet. | |
uint32_t | GetSerializedSize () const override |
Get the serialized size of the packet. | |
uint16_t | GetUnsupported () const |
Get the unsupported option type value. | |
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 | SetSalvage (uint8_t salvage) override |
Set the salvage value of the packet. | |
void | SetUnsupported (uint16_t optionType) |
Set the unsupported option type value. | |
![]() | |
DsrOptionRerrHeader () | |
Constructor. | |
~DsrOptionRerrHeader () override | |
Destructor. | |
uint8_t | GetErrorType () const |
Get the route error type. | |
void | SetErrorType (uint8_t errorType) |
Set the route error type. | |
![]() | |
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. | |
![]() | |
~Header () override | |
virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
Deserialize the object from a buffer iterator. | |
![]() | |
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 TypeId | GetTypeId () |
Get the type identificator. | |
![]() | |
static TypeId | GetTypeId () |
Get the type identificator. | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. | |
![]() | |
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. | |
uint8_t | m_salvage |
The salvage field. | |
uint16_t | m_unsupported |
The unsupported option. | |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. | |
![]() | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
Route Error (RERR) Unsupported option Message Format.
Introspection did not find any typical Config paths.
The type-specific info field of DsrOptionRerrHeader contains
Route Error Unsupported type-specific info field | 0 | 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ |Unsupported Opt| +-+-+-+-+-+-+-+-+
No Attributes are defined for this type.
No TraceSources are defined for this type.
Group: Dsr
Size of this type is 128 bytes (on a 64-bit architecture).
Definition at line 983 of file dsr-option-header.h.
ns3::dsr::DsrOptionRerrUnsupportedHeader::DsrOptionRerrUnsupportedHeader | ( | ) |
Constructor.
Definition at line 1010 of file dsr-option-header.cc.
References ns3::dsr::DsrOptionRerrHeader::SetErrorType(), ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().
|
override |
Destructor.
Definition at line 1018 of file dsr-option-header.cc.
|
overridevirtual |
Deserialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1100 of file dsr-option-header.cc.
References GetSerializedSize(), m_errorDstAddress, m_errorSrcAddress, m_salvage, m_unsupported, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU8(), ns3::dsr::DsrOptionRerrHeader::SetErrorType(), ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().
|
overridevirtual |
Get the Alignment requirement of this option header.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1116 of file dsr-option-header.cc.
|
overridevirtual |
Get the error destination ip address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1053 of file dsr-option-header.cc.
References m_errorDstAddress.
|
overridevirtual |
Get the route error source address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1041 of file dsr-option-header.cc.
References m_errorSrcAddress.
|
overridevirtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1005 of file dsr-option-header.cc.
References GetTypeId().
|
overridevirtual |
Get the salvage value of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1029 of file dsr-option-header.cc.
References m_salvage.
|
overridevirtual |
Get the serialized size of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1080 of file dsr-option-header.cc.
Referenced by Deserialize().
|
static |
Get the type identificator.
Definition at line 995 of file dsr-option-header.cc.
References ns3::TypeId::AddConstructor().
Referenced by GetInstanceTypeId().
uint16_t ns3::dsr::DsrOptionRerrUnsupportedHeader::GetUnsupported | ( | ) | const |
Get the unsupported option type value.
Definition at line 1065 of file dsr-option-header.cc.
References m_unsupported.
|
overridevirtual |
Print some information about the packet.
os | output stream |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1071 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.
|
overridevirtual |
Serialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1086 of file dsr-option-header.cc.
References ns3::dsr::DsrOptionRerrHeader::GetErrorType(), ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), m_errorDstAddress, m_errorSrcAddress, m_salvage, m_unsupported, ns3::WriteTo(), ns3::Buffer::Iterator::WriteU16(), and ns3::Buffer::Iterator::WriteU8().
|
overridevirtual |
Set the error destination ip address.
errorDstAddress | The error destination address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1047 of file dsr-option-header.cc.
References m_errorDstAddress.
Referenced by ns3::dsr::DsrRouting::Receive().
|
overridevirtual |
Set the route error source address.
errorSrcAddress | The error source address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1035 of file dsr-option-header.cc.
References m_errorSrcAddress.
Referenced by ns3::dsr::DsrRouting::Receive().
|
overridevirtual |
Set the salvage value of the packet.
salvage | the salvage value |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1023 of file dsr-option-header.cc.
References m_salvage.
Referenced by ns3::dsr::DsrRouting::Receive().
void ns3::dsr::DsrOptionRerrUnsupportedHeader::SetUnsupported | ( | uint16_t | optionType | ) |
Set the unsupported option type value.
optionType | The unsupported option type value |
Definition at line 1059 of file dsr-option-header.cc.
References m_unsupported.
Referenced by ns3::dsr::DsrRouting::Receive().
|
private |
The error destination address.
Definition at line 1087 of file dsr-option-header.h.
Referenced by Deserialize(), GetErrorDst(), Print(), Serialize(), and SetErrorDst().
|
private |
The error source address.
Definition at line 1083 of file dsr-option-header.h.
Referenced by Deserialize(), GetErrorSrc(), Print(), Serialize(), and SetErrorSrc().
|
private |
The error type or route error option.
Definition at line 1075 of file dsr-option-header.h.
Referenced by Print().
|
private |
The salvage field.
Definition at line 1079 of file dsr-option-header.h.
Referenced by Deserialize(), GetSalvage(), Print(), Serialize(), and SetSalvage().
|
private |
The unsupported option.
Definition at line 1091 of file dsr-option-header.h.
Referenced by Deserialize(), GetUnsupported(), Print(), Serialize(), and SetUnsupported().