Route Error (RERR) Unsupported option Message Format. More...
#include "dsr-option-header.h"
Public Member Functions | |
DsrOptionRerrUnsupportHeader () | |
Constructor. More... | |
virtual | ~DsrOptionRerrUnsupportHeader () |
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... | |
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... | |
uint16_t | GetUnsupported () const |
Get the unsupported option type value. More... | |
virtual void | Print (std::ostream &os) const |
Print some information 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... | |
virtual void | SetSalvage (uint8_t salvage) |
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... | |
virtual | ~DsrOptionRerrHeader () |
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... | |
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 () |
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 erros. 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 (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Chunk | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
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_unsupport |
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 (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Route Error (RERR) Unsupported option Message Format.
Introspection did not find any typical Config paths.
| 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 . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 128 bytes (on a 64-bit architecture).
Definition at line 1029 of file dsr-option-header.h.
ns3::dsr::DsrOptionRerrUnsupportHeader::DsrOptionRerrUnsupportHeader | ( | ) |
Constructor.
Definition at line 930 of file dsr-option-header.cc.
References ns3::dsr::DsrOptionRerrHeader::SetErrorType(), ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().
|
virtual |
Destructor.
Definition at line 938 of file dsr-option-header.cc.
|
virtual |
Deserialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1010 of file dsr-option-header.cc.
References GetSerializedSize(), m_errorDstAddress, m_errorSrcAddress, m_salvage, m_unsupport, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU8(), ns3::dsr::DsrOptionRerrHeader::SetErrorType(), ns3::dsr::DsrOptionHeader::SetLength(), ns3::dsr::DsrOptionHeader::SetType(), and visualizer.core::start().
|
virtual |
Get the Alignment requirement of this option header.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 1025 of file dsr-option-header.cc.
|
virtual |
Get the error destination ip address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 967 of file dsr-option-header.cc.
References m_errorDstAddress.
|
virtual |
Get the route error source address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 957 of file dsr-option-header.cc.
References m_errorSrcAddress.
|
virtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 925 of file dsr-option-header.cc.
References GetTypeId().
|
virtual |
Get the salvage value of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 947 of file dsr-option-header.cc.
References m_salvage.
|
virtual |
Get the serialized size of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 991 of file dsr-option-header.cc.
Referenced by Deserialize(), and ns3::dsr::DsrOptionRerr::Process().
|
static |
Get the type identificator.
Definition at line 915 of file dsr-option-header.cc.
References ns3::TypeId::AddConstructor().
Referenced by GetInstanceTypeId().
uint16_t ns3::dsr::DsrOptionRerrUnsupportHeader::GetUnsupported | ( | ) | const |
Get the unsupported option type value.
Definition at line 977 of file dsr-option-header.cc.
References m_unsupport.
|
virtual |
Print some information about the packet.
os | output stream |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 982 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_unsupport.
|
virtual |
Serialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 996 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_unsupport, visualizer.core::start(), ns3::WriteTo(), ns3::Buffer::Iterator::WriteU16(), and ns3::Buffer::Iterator::WriteU8().
|
virtual |
Set the error destination ip address.
errorDstAddress | The error destination address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 962 of file dsr-option-header.cc.
References m_errorDstAddress.
|
virtual |
Set the route error source address.
errorSrcAddress | The error source address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 952 of file dsr-option-header.cc.
References m_errorSrcAddress.
|
virtual |
Set the salvage value of the packet.
salvage | the salvage value |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 942 of file dsr-option-header.cc.
References m_salvage.
void ns3::dsr::DsrOptionRerrUnsupportHeader::SetUnsupported | ( | uint16_t | optionType | ) |
Set the unsupported option type value.
optionType | The unsupported option type value |
Definition at line 972 of file dsr-option-header.cc.
References m_unsupport.
|
private |
The error destination address.
Definition at line 1133 of file dsr-option-header.h.
Referenced by Deserialize(), GetErrorDst(), Print(), Serialize(), and SetErrorDst().
|
private |
The error source address.
Definition at line 1129 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 1121 of file dsr-option-header.h.
Referenced by Print().
|
private |
The salavage field.
Definition at line 1125 of file dsr-option-header.h.
Referenced by Deserialize(), GetSalvage(), Print(), Serialize(), and SetSalvage().
|
private |
The unsupported option.
Definition at line 1137 of file dsr-option-header.h.
Referenced by Deserialize(), GetUnsupported(), Print(), Serialize(), and SetUnsupported().