Header of Dsr Option Route Error. More...
#include <dsr-option-header.h>
Inheritance diagram for ns3::dsr::DsrOptionRerrHeader:
Collaboration diagram for ns3::dsr::DsrOptionRerrHeader:Public Member Functions | |
| DsrOptionRerrHeader () | |
| Constructor. | |
| virtual | ~DsrOptionRerrHeader () |
| Destructor. | |
| virtual uint32_t | Deserialize (Buffer::Iterator start) |
| Deserialize the packet. | |
| virtual Alignment | GetAlignment () const |
| Get the Alignment requirement of this option header. | |
| virtual Ipv4Address | GetErrorDst () const |
| Get the error destination ip address. | |
| virtual Ipv4Address | GetErrorSrc () const |
| Get the route error source address. | |
| uint8_t | GetErrorType () const |
| Get the route error type. | |
| virtual TypeId | GetInstanceTypeId () const |
| Get the instance type ID. | |
| virtual uint8_t | GetSalvage () const |
| Get the salvage value of the packet. | |
| virtual uint32_t | GetSerializedSize () const |
| Get the serialized size of the packet. | |
| virtual void | Print (std::ostream &os) const |
| Print some informations about the packet. | |
| virtual void | Serialize (Buffer::Iterator start) const |
| Serialize the packet. | |
| virtual void | SetErrorDst (Ipv4Address errorDstAddress) |
| Set the error destination ip address. | |
| virtual void | SetErrorSrc (Ipv4Address errorSrcAddress) |
| Set the route error source address. | |
| void | SetErrorType (uint8_t errorType) |
| Set the route error type. | |
| virtual void | SetSalvage (uint8_t salvage) |
| Set the salvage value of the packet. | |
Public Member Functions inherited from ns3::dsr::DsrOptionHeader | |
| DsrOptionHeader () | |
| Constructor. | |
| virtual | ~DsrOptionHeader () |
| 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 | |
| virtual | ~Header () |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type identificator. | |
Private Attributes | |
| Buffer | m_errorData |
| The anonymous data of this option. | |
| Ipv4Address | m_errorDstAddress |
| The error destination address. | |
| uint16_t | m_errorLength |
| The specific error message length. | |
| Ipv4Address | m_errorSrcAddress |
| The error source address. | |
| uint8_t | m_errorType |
| The error type or route error option. | |
| uint8_t | m_optDataLen |
| option data length | |
| uint8_t | m_reserved |
| The reserved field. | |
| uint8_t | m_salvage |
| The salavage field. | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| virtual void | NotifyConstructionCompleted (void) |
Header of Dsr Option Route Error.
Doxygen introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Definition at line 746 of file dsr-option-header.h.
| ns3::dsr::DsrOptionRerrHeader::DsrOptionRerrHeader | ( | ) |
Constructor.
Definition at line 676 of file dsr-option-header.cc.
References ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().
Here is the call graph for this function:
|
virtual |
Destructor.
Definition at line 686 of file dsr-option-header.cc.
|
virtual |
Deserialize the packet.
| start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 756 of file dsr-option-header.cc.
References ns3::Buffer::AddAtEnd(), ns3::Buffer::Begin(), GetSerializedSize(), m_errorData, m_errorDstAddress, m_errorLength, m_errorSrcAddress, m_errorType, m_salvage, ns3::Buffer::Iterator::Next(), ns3::ReadFrom(), ns3::Buffer::Iterator::ReadU8(), ns3::dsr::DsrOptionHeader::SetLength(), ns3::dsr::DsrOptionHeader::SetType(), visualizer.core::start(), and ns3::Buffer::Iterator::Write().
Here is the call graph for this function:
|
virtual |
Get the Alignment requirement of this option header.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 777 of file dsr-option-header.cc.
|
virtual |
Get the error destination ip address.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 725 of file dsr-option-header.cc.
References m_errorDstAddress.
|
virtual |
Get the route error source address.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 715 of file dsr-option-header.cc.
References m_errorSrcAddress.
| uint8_t ns3::dsr::DsrOptionRerrHeader::GetErrorType | ( | ) | const |
Get the route error type.
Definition at line 695 of file dsr-option-header.cc.
References m_errorType.
Referenced by ns3::dsr::DsrOptionRerrUnreachHeader::Serialize(), and ns3::dsr::DsrOptionRerrUnsupportHeader::Serialize().
Here is the caller graph for this function:
|
virtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 671 of file dsr-option-header.cc.
References GetTypeId().
Here is the call graph for this function:
|
virtual |
Get the salvage value of the packet.
| The | salvage value of the packet |
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 705 of file dsr-option-header.cc.
References m_salvage.
|
virtual |
Get the serialized size of the packet.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 738 of file dsr-option-header.cc.
Referenced by Deserialize().
Here is the caller graph for this function:
|
static |
Get the type identificator.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 656 of file dsr-option-header.cc.
References ns3::TypeId::AddConstructor(), ns3::dsr::FLOW_STATE_NOT_SUPPORTED, m_errorType, ns3::MakeEnumAccessor(), ns3::MakeEnumChecker(), ns3::dsr::NODE_UNREACHABLE, and ns3::dsr::OPTION_NOT_SUPPORTED.
Referenced by GetInstanceTypeId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Print some informations about the packet.
| os | output stream |
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 730 of file dsr-option-header.cc.
References ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), m_errorDstAddress, m_errorSrcAddress, m_errorType, and m_salvage.
Here is the call graph for this function:
|
virtual |
Serialize the packet.
| start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 743 of file dsr-option-header.cc.
References ns3::Buffer::Begin(), ns3::Buffer::End(), ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), m_errorData, m_errorDstAddress, m_errorSrcAddress, m_errorType, m_salvage, visualizer.core::start(), ns3::Buffer::Iterator::Write(), ns3::WriteTo(), and ns3::Buffer::Iterator::WriteU8().
Here is the call graph for this function:
|
virtual |
Set the error destination ip address.
| The | error destination address |
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 720 of file dsr-option-header.cc.
References m_errorDstAddress.
|
virtual |
Set the route error source address.
| The | error source address |
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 710 of file dsr-option-header.cc.
References m_errorSrcAddress.
| void ns3::dsr::DsrOptionRerrHeader::SetErrorType | ( | uint8_t | errorType | ) |
Set the route error type.
| The | error type |
Definition at line 690 of file dsr-option-header.cc.
References m_errorType.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrOptionRerrUnreachHeader::Deserialize(), ns3::dsr::DsrOptionRerrUnsupportHeader::Deserialize(), ns3::dsr::DsrOptionRerrUnreachHeader::DsrOptionRerrUnreachHeader(), ns3::dsr::DsrOptionRerrUnsupportHeader::DsrOptionRerrUnsupportHeader(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrRouting::Receive(), ns3::dsr::DsrRouting::SendPacketFromBuffer(), and ns3::dsr::DsrRouting::SendUnreachError().
Here is the caller graph for this function:
|
virtual |
Set the salvage value of the packet.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Definition at line 700 of file dsr-option-header.cc.
References m_salvage.
|
private |
The anonymous data of this option.
Definition at line 866 of file dsr-option-header.h.
Referenced by Deserialize(), and Serialize().
|
private |
The error destination address.
Definition at line 862 of file dsr-option-header.h.
Referenced by Deserialize(), GetErrorDst(), Print(), Serialize(), and SetErrorDst().
|
private |
The specific error message length.
Definition at line 854 of file dsr-option-header.h.
Referenced by Deserialize().
|
private |
The error source address.
Definition at line 858 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 842 of file dsr-option-header.h.
Referenced by Deserialize(), GetErrorType(), GetTypeId(), Print(), Serialize(), and SetErrorType().
|
private |
option data length
Definition at line 838 of file dsr-option-header.h.
|
private |
The reserved field.
Definition at line 846 of file dsr-option-header.h.
|
private |
The salavage field.
Definition at line 850 of file dsr-option-header.h.
Referenced by Deserialize(), GetSalvage(), Print(), Serialize(), and SetSalvage().