Classes | Public Member Functions | Static Public Member Functions

ns3::Ipv6OptionHeader Class Reference

Header for IPv6 Option. More...

#include <ipv6-option-header.h>

Inheritance diagram for ns3::Ipv6OptionHeader:
Inheritance graph
[legend]
Collaboration diagram for ns3::Ipv6OptionHeader:
Collaboration graph
[legend]

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

virtual uint32_t ns3::Ipv6OptionHeader::Deserialize ( Buffer::Iterator  start  )  [virtual]

Deserialize the packet.

Parameters:
start Buffer iterator
Returns:
size of the packet

Implements ns3::Header.

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

virtual 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::Ipv6OptionJumbogramHeader, and ns3::Ipv6OptionRouterAlertHeader.

virtual TypeId ns3::Ipv6OptionHeader::GetInstanceTypeId (  )  const [virtual]

Get the instance type ID.

Returns:
instance type ID

Implements ns3::ObjectBase.

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

uint8_t ns3::Ipv6OptionHeader::GetLength (  )  const

Get the option length.

Returns:
the option length
virtual uint32_t ns3::Ipv6OptionHeader::GetSerializedSize (  )  const [virtual]

Get the serialized size of the packet.

Returns:
size

Implements ns3::Header.

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

uint8_t ns3::Ipv6OptionHeader::GetType (  )  const

Get the type of the option.

Returns:
the type of the option
static 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::Ipv6OptionPad1Header, ns3::Ipv6OptionPadnHeader, ns3::Ipv6OptionJumbogramHeader, and ns3::Ipv6OptionRouterAlertHeader.

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

Print some informations about the packet.

Parameters:
os output stream
Returns:
info about this packet

Implements ns3::Header.

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

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

Serialize the packet.

Parameters:
start Buffer iterator

Implements ns3::Header.

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

void ns3::Ipv6OptionHeader::SetLength ( uint8_t  length  ) 

Set the option length.

Parameters:
length the option length
void ns3::Ipv6OptionHeader::SetType ( uint8_t  type  ) 

Set the type of the option.

Parameters:
type the type of the option

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