|
ns-3
|
Route Error (RERR) Unreachable node address option Message Format. More...
#include <dsr-option-header.h>


Public Member Functions | |
| virtual TypeId | GetInstanceTypeId () const |
| Get the instance type ID. | |
| DsrOptionRerrUnreachHeader () | |
| Constructor. | |
| virtual | ~DsrOptionRerrUnreachHeader () |
| 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 | SetUnreachNode (Ipv4Address unreachNode) |
| Set the unreachable node ip address. | |
| Ipv4Address | GetUnreachNode () const |
| Get the unreachable node ip address. | |
| void | SetOriginalDst (Ipv4Address originalDst) |
| Set the unreachable node ip address. | |
| Ipv4Address | GetOriginalDst () const |
| Get the unreachable node 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. | |
Public Member Functions inherited from ns3::dsr::DsrOptionRerrHeader | |
| DsrOptionRerrHeader () | |
| Constructor. | |
| virtual | ~DsrOptionRerrHeader () |
| Destructor. | |
| void | SetErrorType (uint8_t errorType) |
| Set the route error type. | |
| uint8_t | GetErrorType () const |
| Get the route error type. | |
Public Member Functions inherited from ns3::dsr::DsrOptionHeader | |
| 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) 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 . . . +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
virtual |
Deserialize the packet.
| start | Buffer iterator |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References GetSerializedSize(), 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.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrOptionRreq::Process(), and ns3::dsr::DsrOptionRerr::Process().
|
virtual |
Get the route error source address.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrOptionRreq::Process(), and ns3::dsr::DsrOptionRerr::Process().
|
virtual |
Get the instance type ID.
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
References GetTypeId().
| Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetOriginalDst | ( | ) | const |
Get the unreachable node ip address.
|
virtual |
Get the salvage value of the packet.
| The | salvage value of the packet |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), and ns3::dsr::DsrOptionRreq::Process().
|
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::DsrOptionRerrUnreachHeader.
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().
| Ipv4Address ns3::dsr::DsrOptionRerrUnreachHeader::GetUnreachNode | ( | ) | const |
Get the unreachable node ip address.
Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), ns3::dsr::DsrOptionRreq::Process(), and ns3::dsr::DsrOptionRerr::Process().
|
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(), 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::DsrOptionRreq::Process().
|
virtual |
Set the route error source address.
| The | error source address |
Reimplemented from ns3::dsr::DsrOptionRerrHeader.
Referenced by ns3::dsr::DsrOptionRreq::Process().
| void ns3::dsr::DsrOptionRerrUnreachHeader::SetOriginalDst | ( | Ipv4Address | originalDst | ) |
Set the unreachable node ip address.
| The | unreachable ip address |
| void ns3::dsr::DsrOptionRerrUnreachHeader::SetUnreachNode | ( | Ipv4Address | unreachNode | ) |
Set the unreachable node ip address.
| The | unreachable ip address |
Referenced by ns3::dsr::DsrOptionRreq::Process().