ns-3
ns3::dsr::DsrOptionField Class Reference
Inheritance diagram for ns3::dsr::DsrOptionField:

List of all members.

Public Member Functions

 DsrOptionField (uint32_t optionsOffset)
 Constructor.
 ~DsrOptionField ()
 Destructor.
uint32_t GetSerializedSize () const
 Get the serialized size of the packet.
void Serialize (Buffer::Iterator start) const
 Serialize all added options.
uint32_t Deserialize (Buffer::Iterator start, uint32_t length)
 Deserialize the packet.
void AddDsrOption (DsrOptionHeader const &option)
 Serialize the option, prepending pad1 or padn option as necessary.
uint32_t GetDsrOptionsOffset ()
 Get the offset where the options begin, measured from the start of the extension header.
Buffer GetDsrOptionBuffer ()
 Get the buffer.

Constructor & Destructor Documentation

ns3::dsr::DsrOptionField::DsrOptionField ( uint32_t  optionsOffset)

Constructor.

Parameters:
optionsOffsetoption offset

Member Function Documentation

uint32_t ns3::dsr::DsrOptionField::Deserialize ( Buffer::Iterator  start,
uint32_t  length 
)

Deserialize the packet.

Parameters:
startBuffer iterator
lengthlength
Returns:
size of the packet

References ns3::Buffer::AddAtEnd(), ns3::Buffer::Begin(), ns3::Buffer::Iterator::Read(), and ns3::Buffer::Iterator::Write().

Buffer ns3::dsr::DsrOptionField::GetDsrOptionBuffer ( )

Get the buffer.

Returns:
buffer
uint32_t ns3::dsr::DsrOptionField::GetDsrOptionsOffset ( )

Get the offset where the options begin, measured from the start of the extension header.

Returns:
the offset from the start of the extension header

Referenced by ns3::dsr::DsrRouting::CheckSendBuffer(), and ns3::dsr::DsrRouting::Receive().

uint32_t ns3::dsr::DsrOptionField::GetSerializedSize ( void  ) const

Get the serialized size of the packet.

Returns:
size

Reimplemented in ns3::dsr::DsrRoutingHeader.

References ns3::Buffer::GetSize().

void ns3::dsr::DsrOptionField::Serialize ( Buffer::Iterator  start) const

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