ns-3
|
Route Error (RERR) Unsupported option Message Format. More...
#include <dsr-option-header.h>
Public Member Functions | |
virtual TypeId | GetInstanceTypeId () const |
Get the instance type ID. | |
DsrOptionRerrUnsupportHeader () | |
Constructor. | |
virtual | ~DsrOptionRerrUnsupportHeader () |
Destructor. | |
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. | |
void | SetUnsupported (uint16_t optionType) |
Set the unsupported option type value. | |
uint16_t | GetUnsupported () const |
Get the unsupported option type value. | |
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. | |
![]() | |
DsrOptionRerrHeader () | |
Constructor. | |
virtual | ~DsrOptionRerrHeader () |
Destructor. | |
void | SetErrorType (uint8_t errorType) |
Set the route error type. | |
uint8_t | GetErrorType () const |
Get the route error type. | |
![]() | |
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. |
Route Error (RERR) Unsupported 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 . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
virtual |
Deserialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References GetSerializedSize(), ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU8(), ns3::dsr::DsrOptionRerrHeader::SetErrorType(), ns3::dsr::DsrOptionHeader::SetLength(), and ns3::dsr::DsrOptionHeader::SetType().
|
virtual |
Get the Alignment requirement of this option header.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
|
virtual |
Get the error destination ip address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
|
virtual |
Get the route error source address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
|
virtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References GetTypeId().
|
virtual |
Get the salvage value of the packet.
The | salvage value of the packet |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
|
virtual |
Get the serialized size of the packet.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Referenced by Deserialize(), and ns3::dsr::DsrOptionRerr::Process().
|
static |
Get the type identificator.
This method returns the TypeId associated to ns3::dsr::DsrOptionRerrUnsupportHeader.
No Attributes defined for this type.
Attributes defined in parent class ns3::dsr::DsrOptionRerrHeader:
No TraceSources defined for this type.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References ns3::TypeId::AddConstructor().
Referenced by GetInstanceTypeId().
uint16_t ns3::dsr::DsrOptionRerrUnsupportHeader::GetUnsupported | ( | ) | const |
Get the unsupported option type value.
|
virtual |
Print some informations about the packet.
os | output stream |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References ns3::dsr::DsrOptionHeader::GetLength(), and ns3::dsr::DsrOptionHeader::GetType().
|
virtual |
Serialize the packet.
start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References ns3::dsr::DsrOptionRerrHeader::GetErrorType(), ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), ns3::Buffer::Iterator::WriteU16(), and ns3::Buffer::Iterator::WriteU8().
|
virtual |
Set the error destination ip address.
The | error destination address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Referenced by ns3::dsr::DsrRouting::Receive().
|
virtual |
Set the route error source address.
The | error source address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Referenced by ns3::dsr::DsrRouting::Receive().
void ns3::dsr::DsrOptionRerrUnsupportHeader::SetUnsupported | ( | uint16_t | optionType | ) |
Set the unsupported option type value.
The | unsupported option type value |
Referenced by ns3::dsr::DsrRouting::Receive().