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

ICMPv6 option header. More...

#include <icmpv6-header.h>

+ Inheritance diagram for ns3::Icmpv6OptionHeader:
+ Collaboration diagram for ns3::Icmpv6OptionHeader:

Public Member Functions

 Icmpv6OptionHeader ()
 Constructor.
virtual ~Icmpv6OptionHeader ()
 Destructor.
virtual uint32_t Deserialize (Buffer::Iterator start)
 Deserialize the packet.
virtual TypeId GetInstanceTypeId () const
 Get the instance type ID.
uint8_t GetLength () const
 Get the length of the option in 8 bytes unit.
virtual uint32_t GetSerializedSize () const
 Get the serialized size.
uint8_t GetType () const
 Get the type of the option.
virtual void Print (std::ostream &os) const
 Print informations.
virtual void Serialize (Buffer::Iterator start) const
 Serialize the packet.
void SetLength (uint8_t len)
 Set the length of the option.
void SetType (uint8_t type)
 Set the type of the option.
- Public Member Functions inherited from ns3::Header
virtual ~Header ()

Static Public Member Functions

static TypeId GetTypeId ()
 Get the UID of this class.

Private Attributes

uint8_t m_len
 The length.
uint8_t m_type
 The type.

Additional Inherited Members

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

Detailed Description

ICMPv6 option header.

This type is not accessible from the Config system.
No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 241 of file icmpv6-header.h.

Constructor & Destructor Documentation

ns3::Icmpv6OptionHeader::Icmpv6OptionHeader ( )

Constructor.

Definition at line 1328 of file icmpv6-header.cc.

References m_len, and m_type.

ns3::Icmpv6OptionHeader::~Icmpv6OptionHeader ( )
virtual

Destructor.

Definition at line 1335 of file icmpv6-header.cc.

Member Function Documentation

uint32_t ns3::Icmpv6OptionHeader::Deserialize ( Buffer::Iterator  start)
virtual

Deserialize the packet.

Parameters
startstart offset
Returns
length of packet

Implements ns3::Header.

Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, and ns3::Icmpv6OptionMtu.

Definition at line 1373 of file icmpv6-header.cc.

References GetSerializedSize().

+ Here is the call graph for this function:

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

Get the instance type ID.

Returns
instance type ID

Implements ns3::ObjectBase.

Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, and ns3::Icmpv6OptionMtu.

Definition at line 1322 of file icmpv6-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

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

Get the serialized size.

Returns
serialized size

Implements ns3::Header.

Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, and ns3::Icmpv6OptionMtu.

Definition at line 1368 of file icmpv6-header.cc.

References m_len.

Referenced by Deserialize().

+ Here is the caller graph for this function:

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

Get the UID of this class.

Returns
UID

Reimplemented from ns3::Header.

Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, and ns3::Icmpv6OptionMtu.

Definition at line 1313 of file icmpv6-header.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Print informations.

Parameters
osoutput stream

Implements ns3::Header.

Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, and ns3::Icmpv6OptionMtu.

Definition at line 1363 of file icmpv6-header.cc.

References GetLength(), and GetType().

+ Here is the call graph for this function:

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

Serialize the packet.

Parameters
startstart offset

Implements ns3::Header.

Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, and ns3::Icmpv6OptionMtu.

Definition at line 1378 of file icmpv6-header.cc.

Member Data Documentation

uint8_t ns3::Icmpv6OptionHeader::m_len
private

The length.

Definition at line 324 of file icmpv6-header.h.

Referenced by GetLength(), GetSerializedSize(), Icmpv6OptionHeader(), and SetLength().

uint8_t ns3::Icmpv6OptionHeader::m_type
private

The type.

Definition at line 319 of file icmpv6-header.h.

Referenced by GetType(), Icmpv6OptionHeader(), and SetType().


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