NS-3
ns3::Ipv6ExtensionHeader Class Reference

Header for IPv6 Extension. More...

#include <ipv6-extension-header.h>

Inheritance diagram for ns3::Ipv6ExtensionHeader:
Collaboration diagram for ns3::Ipv6ExtensionHeader:

List of all members.

Public Member Functions

virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
 Ipv6ExtensionHeader ()
 Constructor.
virtual ~Ipv6ExtensionHeader ()
 Destructor.
void SetNextHeader (uint8_t nextHeader)
 Set the "Next header" field.
uint8_t GetNextHeader () const
 Get the next header.
void SetLength (uint16_t length)
uint16_t GetLength () const
 Get the length of the extension.
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.

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type identificator.

Detailed Description

Header for IPv6 Extension.


Member Function Documentation

virtual uint32_t ns3::Ipv6ExtensionHeader::Deserialize ( Buffer::Iterator  start) [virtual]
virtual TypeId ns3::Ipv6ExtensionHeader::GetInstanceTypeId ( ) const [virtual]
uint16_t ns3::Ipv6ExtensionHeader::GetLength ( ) const

Get the length of the extension.

Returns:
the length of the extension
uint8_t ns3::Ipv6ExtensionHeader::GetNextHeader ( ) const

Get the next header.

Returns:
the next header number
virtual uint32_t ns3::Ipv6ExtensionHeader::GetSerializedSize ( ) const [virtual]
static TypeId ns3::Ipv6ExtensionHeader::GetTypeId ( void  ) [static]

Get the type identificator.

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

Returns:
type identificator

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

Reimplemented from ns3::Header.

Reimplemented in ns3::Ipv6ExtensionHopByHopHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::Ipv6ExtensionFragmentHeader, ns3::Ipv6ExtensionRoutingHeader, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::Ipv6ExtensionESPHeader, and ns3::Ipv6ExtensionAHHeader.

virtual void ns3::Ipv6ExtensionHeader::Print ( std::ostream &  os) const [virtual]
virtual void ns3::Ipv6ExtensionHeader::Serialize ( Buffer::Iterator  start) const [virtual]
void ns3::Ipv6ExtensionHeader::SetLength ( uint16_t  length)

brief Set the length of the extension.

Parameters:
lengththe length of the extension in bytes
void ns3::Ipv6ExtensionHeader::SetNextHeader ( uint8_t  nextHeader)

Set the "Next header" field.

Parameters:
nextHeaderthe next header number

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