ns-3
|
Header of Dsr Option Route Error. More...
#include <dsr-option-header.h>
Public Member Functions | |
virtual TypeId | GetInstanceTypeId () const |
Get the instance type ID. | |
DsrOptionRerrHeader () | |
Constructor. | |
virtual | ~DsrOptionRerrHeader () |
Destructor. | |
void | SetErrorType (uint8_t errorType) |
Set the route error type. | |
uint8_t | GetErrorType () const |
Get the route error type. | |
virtual void | SetErrorSrc (Ipv4Address errorSrcAddress) |
Set the route error source address. | |
virtual Ipv4Address | GetErrorSrc () const |
Get the route error source address. | |
virtual void | SetSalvage (uint8_t salvage) |
Set the salvage value of the packet. | |
virtual uint8_t | GetSalvage () const |
Get the salvage value of the packet. | |
virtual void | SetErrorDst (Ipv4Address errorDstAddress) |
Set the error destination ip address. | |
virtual Ipv4Address | GetErrorDst () const |
Get the error destination ip address. | |
virtual void | Print (std::ostream &os) const |
Print some informations about the packet. | |
virtual uint32_t | GetSerializedSize () const |
Get the serialized size of the packet. | |
virtual void | Serialize (Buffer::Iterator start) const |
Serialize the packet. | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
Deserialize the packet. | |
virtual Alignment | GetAlignment () const |
Get the Alignment requirement of this option header. | |
![]() | |
DsrOptionHeader () | |
Constructor. | |
virtual | ~DsrOptionHeader () |
Destructor. | |
void | SetType (uint8_t type) |
Set the type of the option. | |
uint8_t | GetType () const |
Get the type of the option. | |
void | SetLength (uint8_t length) |
Set the option length. | |
uint8_t | GetLength () const |
Get the option length. |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type identificator. |
Header of Dsr Option Route Error.
|
virtual |
Deserialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
References ns3::Buffer::AddAtEnd(), ns3::Buffer::Begin(), GetSerializedSize(), ns3::Buffer::Iterator::Next(), ns3::Buffer::Iterator::ReadU8(), ns3::dsr::DsrOptionHeader::SetLength(), ns3::dsr::DsrOptionHeader::SetType(), and ns3::Buffer::Iterator::Write().
|
virtual |
Get the Alignment requirement of this option header.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
|
virtual |
Get the error destination ip address.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
|
virtual |
Get the route error source address.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
uint8_t ns3::dsr::DsrOptionRerrHeader::GetErrorType | ( | ) | const |
Get the route error type.
Referenced by ns3::dsr::DsrOptionRerrUnreachHeader::Serialize(), and ns3::dsr::DsrOptionRerrUnsupportHeader::Serialize().
|
virtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
References GetTypeId().
|
virtual |
Get the salvage value of the packet.
The | salvage value of the packet |
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
|
virtual |
Get the serialized size of the packet.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
Referenced by Deserialize().
|
static |
Get the type identificator.
This method returns the TypeId associated to ns3::dsr::DsrOptionRerrHeader.
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
References ns3::TypeId::AddConstructor().
Referenced by GetInstanceTypeId().
|
virtual |
Print some informations about the packet.
os | output stream |
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
References ns3::dsr::DsrOptionHeader::GetLength(), and ns3::dsr::DsrOptionHeader::GetType().
|
virtual |
Serialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionHeader.
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
References ns3::Buffer::Begin(), ns3::Buffer::End(), ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), ns3::Buffer::Iterator::Write(), and ns3::Buffer::Iterator::WriteU8().
|
virtual |
Set the error destination ip address.
The | error destination address |
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
|
virtual |
Set the route error source address.
The | error source address |
Reimplemented in ns3::dsr::DsrOptionRerrUnsupportHeader, and ns3::dsr::DsrOptionRerrUnreachHeader.
void ns3::dsr::DsrOptionRerrHeader::SetErrorType | ( | uint8_t | errorType | ) |
Set the route error type.
The | error type |
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(), and ns3::dsr::DsrRouting::Receive().