ns-3
ns3::Ipv6OptionHeader Class Reference

Header for IPv6 Option. More...

#include <ipv6-option-header.h>

Inheritance diagram for ns3::Ipv6OptionHeader:
Collaboration diagram for ns3::Ipv6OptionHeader:

List of all members.

Classes

struct  Alignment
 represents the alignment requirements of an option header More...

Public Member Functions

virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
 Ipv6OptionHeader ()
 Constructor.
virtual ~Ipv6OptionHeader ()
 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.
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.

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type identificator.

Detailed Description

Header for IPv6 Option.


Member Function Documentation

uint32_t ns3::Ipv6OptionHeader::Deserialize ( Buffer::Iterator  start)
virtual
Ipv6OptionHeader::Alignment ns3::Ipv6OptionHeader::GetAlignment ( ) const
virtual

Get the Alignment requirement of this option header.

Returns:
The required alignment

Subclasses should only implement this method, if special alignment is required. Default is no alignment (1n+0).

Reimplemented in ns3::Ipv6OptionRouterAlertHeader, and ns3::Ipv6OptionJumbogramHeader.

Referenced by ns3::OptionField::AddOption().

TypeId ns3::Ipv6OptionHeader::GetInstanceTypeId ( void  ) const
virtual

Get the instance type ID.

Returns:
instance type ID

Implements ns3::ObjectBase.

Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.

References GetTypeId().

uint32_t ns3::Ipv6OptionHeader::GetSerializedSize ( void  ) const
virtual

Get the serialized size of the packet.

Returns:
size

Implements ns3::Header.

Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.

Referenced by ns3::OptionField::AddOption(), and Deserialize().

TypeId ns3::Ipv6OptionHeader::GetTypeId ( void  )
static

Get the type identificator.

This method returns the TypeId associated to ns3::Ipv6OptionHeader.

Returns:
type identificator

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Header.

Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.

References ns3::TypeId::AddConstructor().

Referenced by GetInstanceTypeId().

void ns3::Ipv6OptionHeader::Print ( std::ostream &  os) const
virtual

Print some informations about the packet.

Parameters:
osoutput stream
Returns:
info about this packet

Implements ns3::Header.

Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.

void ns3::Ipv6OptionHeader::Serialize ( Buffer::Iterator  start) const
virtual

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