Route Error (RERR) Unreachable node address option Message Format. More...
#include "dsr-option-header.h"
Public Member Functions | |
DsrOptionRerrUnreachHeader () | |
Constructor. More... | |
~DsrOptionRerrUnreachHeader () 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... | |
Ipv4Address | GetOriginalDst () const |
Get the unreachable node ip address. 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... | |
Ipv4Address | GetUnreachNode () const |
Get the unreachable node ip address. 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 | SetOriginalDst (Ipv4Address originalDst) |
Set the unreachable node ip address. More... | |
void | SetSalvage (uint8_t salvage) override |
Set the salvage value of the packet. More... | |
void | SetUnreachNode (Ipv4Address unreachNode) |
Set the unreachable node ip address. 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... | |
Ipv4Address | m_originalDst |
The original destination address. More... | |
uint8_t | m_salvage |
The salavage field. More... | |
Ipv4Address | m_unreachNode |
The unreachable node address. 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... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Route Error (RERR) Unreachable node address 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 875 of file dsr-option-header.h.
ns3::dsr::DsrOptionRerrUnreachHeader::DsrOptionRerrUnreachHeader | ( | ) |
Constructor.
Definition at line 877 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 885 of file dsr-option-header.cc.
|
overridevirtual |
Deserialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 980 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(), ns3::dsr::DsrOptionHeader::SetType(), and two-ray-to-three-gpp-ch-calibration::start.
|
overridevirtual |
Get the Alignment requirement of this option header.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 997 of file dsr-option-header.cc.
|
overridevirtual |
Get the error destination ip address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 920 of file dsr-option-header.cc.
References m_errorDstAddress.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
|
overridevirtual |
Get the route error source address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 908 of file dsr-option-header.cc.
References m_errorSrcAddress.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrRouting::ForwardErrPacket(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
|
overridevirtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 872 of file dsr-option-header.cc.
References GetTypeId().
Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetOriginalDst | ( | ) | const |
Get the unreachable node ip address.
Definition at line 944 of file dsr-option-header.cc.
References m_originalDst.
Referenced by ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
|
overridevirtual |
Get the salvage value of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 896 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().
|
overridevirtual |
Get the serialized size of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 959 of file dsr-option-header.cc.
Referenced by Deserialize(), and ns3::dsr::DsrOptionRerr::Process().
|
static |
Get the type identificator.
Definition at line 862 of file dsr-option-header.cc.
References ns3::TypeId::AddConstructor().
Referenced by GetInstanceTypeId().
Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetUnreachNode | ( | ) | const |
Get the unreachable node ip address.
Definition at line 932 of file dsr-option-header.cc.
References m_unreachNode.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), DsrRerrHeaderTest::DoRun(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRerr::Process(), ns3::dsr::DsrRouting::SendErrorRequest(), and ns3::dsr::DsrRouting::SendPacketFromBuffer().
|
overridevirtual |
Print some information about the packet.
os | output stream |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 950 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.
|
overridevirtual |
Serialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 965 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, two-ray-to-three-gpp-ch-calibration::start, ns3::WriteTo(), 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 914 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().
|
overridevirtual |
Set the route error source address.
errorSrcAddress | The error source address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 902 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().
void ns3::dsr::DsrOptionRerrUnreachHeader::SetOriginalDst | ( | Ipv4Address | originalDst | ) |
Set the unreachable node ip address.
originalDst | The unreachable ip address |
Definition at line 938 of file dsr-option-header.cc.
References m_originalDst.
Referenced by ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
|
overridevirtual |
Set the salvage value of the packet.
salvage | The salvage value of the packet |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Definition at line 890 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().
void ns3::dsr::DsrOptionRerrUnreachHeader::SetUnreachNode | ( | Ipv4Address | unreachNode | ) |
Set the unreachable node ip address.
unreachNode | The unreachable ip address |
Definition at line 926 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().
|
private |
The error destination address.
Definition at line 989 of file dsr-option-header.h.
Referenced by Deserialize(), GetErrorDst(), Print(), Serialize(), and SetErrorDst().
|
private |
The error source address.
Definition at line 985 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 977 of file dsr-option-header.h.
Referenced by Print().
|
private |
The original destination address.
Definition at line 997 of file dsr-option-header.h.
Referenced by Deserialize(), GetOriginalDst(), Serialize(), and SetOriginalDst().
|
private |
The salavage field.
Definition at line 981 of file dsr-option-header.h.
Referenced by Deserialize(), GetSalvage(), Print(), Serialize(), and SetSalvage().
|
private |
The unreachable node address.
Definition at line 993 of file dsr-option-header.h.
Referenced by Deserialize(), GetUnreachNode(), Print(), Serialize(), and SetUnreachNode().