ns-3
ns3::dsr::DsrOptionRerrUnsupportHeader Class Reference

Route Error (RERR) Unsupported option Message Format. More...

#include <dsr-option-header.h>

Inheritance diagram for ns3::dsr::DsrOptionRerrUnsupportHeader:
Collaboration diagram for ns3::dsr::DsrOptionRerrUnsupportHeader:

List of all members.

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.
- 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.

Detailed Description

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                  .
   .                                                               .
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Member Function Documentation

uint32_t ns3::dsr::DsrOptionRerrUnsupportHeader::Deserialize ( Buffer::Iterator  start)
virtual
DsrOptionHeader::Alignment ns3::dsr::DsrOptionRerrUnsupportHeader::GetAlignment ( ) const
virtual

Get the Alignment requirement of this option header.

Returns:
The required alignment

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Ipv4Address ns3::dsr::DsrOptionRerrUnsupportHeader::GetErrorDst ( ) const
virtual

Get the error destination ip address.

Returns:
The error destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Ipv4Address ns3::dsr::DsrOptionRerrUnsupportHeader::GetErrorSrc ( ) const
virtual

Get the route error source address.

Returns:
The error source address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

TypeId ns3::dsr::DsrOptionRerrUnsupportHeader::GetInstanceTypeId ( void  ) const
virtual

Get the instance type ID.

Returns:
instance type ID

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

References GetTypeId().

uint8_t ns3::dsr::DsrOptionRerrUnsupportHeader::GetSalvage ( ) const
virtual

Get the salvage value of the packet.

Parameters:
Thesalvage value of the packet

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

uint32_t ns3::dsr::DsrOptionRerrUnsupportHeader::GetSerializedSize ( void  ) const
virtual

Get the serialized size of the packet.

Returns:
size

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Referenced by Deserialize(), and ns3::dsr::DsrOptionRerr::Process().

TypeId ns3::dsr::DsrOptionRerrUnsupportHeader::GetTypeId ( void  )
static

Get the type identificator.

This method returns the TypeId associated to ns3::dsr::DsrOptionRerrUnsupportHeader.

Returns:
type identificator

No Attributes defined for this type.
Attributes defined in parent class ns3::dsr::DsrOptionRerrHeader:

  • ErrorType: Type of route errors
    • Set with class: ns3::EnumValue
    • Underlying type: Node unreachable|Flow state not supported|Option not supported
    • Initial value: Node unreachable
    • Flags: construct write read

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.

Returns:
The unsupported option type value
void ns3::dsr::DsrOptionRerrUnsupportHeader::Print ( std::ostream &  os) const
virtual

Print some informations about the packet.

Parameters:
osoutput stream
Returns:
info about this packet

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

References ns3::dsr::DsrOptionHeader::GetLength(), and ns3::dsr::DsrOptionHeader::GetType().

void ns3::dsr::DsrOptionRerrUnsupportHeader::Serialize ( Buffer::Iterator  start) const
virtual
void ns3::dsr::DsrOptionRerrUnsupportHeader::SetErrorDst ( Ipv4Address  errorDstAddress)
virtual

Set the error destination ip address.

Parameters:
Theerror destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Referenced by ns3::dsr::DsrRouting::Receive().

void ns3::dsr::DsrOptionRerrUnsupportHeader::SetErrorSrc ( Ipv4Address  errorSrcAddress)
virtual

Set the route error source address.

Parameters:
Theerror 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.

Parameters:
Theunsupported option type value

Referenced by ns3::dsr::DsrRouting::Receive().


The documentation for this class was generated from the following files: