A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::dsr::DsrOptionRerrUnsupportHeader Class Reference

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

#include <dsr-option-header.h>

+ Inheritance diagram for ns3::dsr::DsrOptionRerrUnsupportHeader:

Public Member Functions

 DsrOptionRerrUnsupportHeader ()
 Constructor.
 
virtual ~DsrOptionRerrUnsupportHeader ()
 Destructor.
 
virtual uint32_t Deserialize (Buffer::Iterator start)
 Deserialize the packet. More...
 
virtual Alignment GetAlignment () const
 Get the Alignment requirement of this option header. More...
 
virtual Ipv4Address GetErrorDst () const
 Get the error destination ip address. More...
 
virtual Ipv4Address GetErrorSrc () const
 Get the route error source address. More...
 
virtual TypeId GetInstanceTypeId () const
 Get the instance type ID. More...
 
virtual uint8_t GetSalvage () const
 Get the salvage value of the packet. More...
 
virtual uint32_t GetSerializedSize () const
 Get the serialized size of the packet. More...
 
uint16_t GetUnsupported () const
 Get the unsupported option type value. More...
 
virtual void Print (std::ostream &os) const
 Print some informations about the packet. More...
 
virtual void Serialize (Buffer::Iterator start) const
 Serialize the packet. More...
 
virtual void SetErrorDst (Ipv4Address errorDstAddress)
 Set the error destination ip address. More...
 
virtual void SetErrorSrc (Ipv4Address errorSrcAddress)
 Set the route error source address. More...
 
virtual void SetSalvage (uint8_t salvage)
 Set the salvage value of the packet.
 
void SetUnsupported (uint16_t optionType)
 Set the unsupported option type value. More...
 
- Public Member Functions inherited from ns3::dsr::DsrOptionRerrHeader
 DsrOptionRerrHeader ()
 Constructor.
 
virtual ~DsrOptionRerrHeader ()
 Destructor.
 
uint8_t GetErrorType () const
 Get the route error type. More...
 
void SetErrorType (uint8_t errorType)
 Set the route error type. More...
 
- Public Member Functions inherited from ns3::dsr::DsrOptionHeader
 DsrOptionHeader ()
 Constructor.
 
virtual ~DsrOptionHeader ()
 Destructor.
 
uint8_t GetLength () const
 Get the option length. More...
 
uint8_t GetType () const
 Get the type of the option. More...
 
void SetLength (uint8_t length)
 Set the option length. More...
 
void SetType (uint8_t type)
 Set the type of the option. More...
 
- Public Member Functions inherited from ns3::ObjectBase
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type identificator. More...
 
- Static Public Member Functions inherited from ns3::dsr::DsrOptionRerrHeader
static TypeId GetTypeId ()
 Get the type identificator. More...
 
- Static Public Member Functions inherited from ns3::dsr::DsrOptionHeader
static TypeId GetTypeId ()
 Get the type identificator. More...
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 

Private Attributes

Ipv4Address m_errorDstAddress
 The error destination address.
 
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.
 
uint16_t m_unsupport
 The unsupported option.
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 

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

Doxygen introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 1067 of file dsr-option-header.h.

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.

Definition at line 1023 of file dsr-option-header.cc.

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

Get the error destination ip address.

Returns
The error destination address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Definition at line 965 of file dsr-option-header.cc.

References m_errorDstAddress.

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

Get the route error source address.

Returns
The error source address

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Definition at line 955 of file dsr-option-header.cc.

References m_errorSrcAddress.

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

Get the instance type ID.

Returns
instance type ID

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Definition at line 922 of file dsr-option-header.cc.

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.

Definition at line 945 of file dsr-option-header.cc.

References m_salvage.

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

Get the serialized size of the packet.

Returns
size

Reimplemented from ns3::dsr::DsrOptionRerrHeader.

Definition at line 989 of file dsr-option-header.cc.

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

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

Get the type identificator.

Returns
type identificator

Definition at line 913 of file dsr-option-header.cc.

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

Definition at line 975 of file dsr-option-header.cc.

References m_unsupport.

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.

Definition at line 980 of file dsr-option-header.cc.

References ns3::dsr::DsrOptionHeader::GetLength(), ns3::dsr::DsrOptionHeader::GetType(), m_errorDstAddress, m_errorSrcAddress, m_errorType, m_salvage, and m_unsupport.

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.

Definition at line 960 of file dsr-option-header.cc.

References m_errorDstAddress.

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.

Definition at line 950 of file dsr-option-header.cc.

References m_errorSrcAddress.

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

Definition at line 970 of file dsr-option-header.cc.

References m_unsupport.

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


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