ns-3
|
Header for IPv6 Option. More...
#include <ipv6-option-header.h>
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. |
Header for IPv6 Option.
|
virtual |
Deserialize the packet.
start | Buffer iterator |
Implements ns3::Header.
Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.
References ns3::Buffer::AddAtEnd(), ns3::Buffer::Begin(), GetSerializedSize(), ns3::Buffer::Iterator::Next(), ns3::Buffer::Iterator::ReadU8(), and ns3::Buffer::Iterator::Write().
|
virtual |
Get the Alignment requirement of this option header.
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().
|
virtual |
Get the instance type ID.
Implements ns3::ObjectBase.
Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.
References GetTypeId().
uint8_t ns3::Ipv6OptionHeader::GetLength | ( | ) | const |
Get the option length.
Referenced by ns3::Ipv6OptionPadnHeader::GetSerializedSize(), ns3::Ipv6OptionJumbogramHeader::GetSerializedSize(), ns3::Ipv6OptionRouterAlertHeader::GetSerializedSize(), ns3::Ipv6OptionPadnHeader::Print(), ns3::Ipv6OptionJumbogramHeader::Print(), ns3::Ipv6OptionRouterAlertHeader::Print(), ns3::Ipv6OptionPadnHeader::Serialize(), ns3::Ipv6OptionJumbogramHeader::Serialize(), and ns3::Ipv6OptionRouterAlertHeader::Serialize().
|
virtual |
Get the serialized size of the packet.
Implements ns3::Header.
Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.
Referenced by ns3::OptionField::AddOption(), and Deserialize().
uint8_t ns3::Ipv6OptionHeader::GetType | ( | void | ) | const |
Get the type of the option.
Referenced by ns3::Ipv6OptionPad1Header::Print(), ns3::Ipv6OptionPadnHeader::Print(), ns3::Ipv6OptionJumbogramHeader::Print(), ns3::Ipv6OptionRouterAlertHeader::Print(), ns3::Ipv6OptionPad1Header::Serialize(), ns3::Ipv6OptionPadnHeader::Serialize(), ns3::Ipv6OptionJumbogramHeader::Serialize(), and ns3::Ipv6OptionRouterAlertHeader::Serialize().
|
static |
Get the type identificator.
This method returns the TypeId associated to ns3::Ipv6OptionHeader.
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().
|
virtual |
Print some informations about the packet.
os | output stream |
Implements ns3::Header.
Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.
|
virtual |
Serialize the packet.
start | Buffer iterator |
Implements ns3::Header.
Reimplemented in ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6OptionPadnHeader, and ns3::Ipv6OptionPad1Header.
References ns3::Buffer::Begin(), ns3::Buffer::End(), ns3::Buffer::Iterator::Write(), and ns3::Buffer::Iterator::WriteU8().
Referenced by ns3::OptionField::AddOption().
void ns3::Ipv6OptionHeader::SetLength | ( | uint8_t | length | ) |
Set the option length.
length | the option length |
Referenced by ns3::Ipv6OptionPadnHeader::Deserialize(), ns3::Ipv6OptionJumbogramHeader::Deserialize(), ns3::Ipv6OptionRouterAlertHeader::Deserialize(), ns3::Ipv6OptionJumbogramHeader::Ipv6OptionJumbogramHeader(), ns3::Ipv6OptionPadnHeader::Ipv6OptionPadnHeader(), and ns3::Ipv6OptionRouterAlertHeader::Ipv6OptionRouterAlertHeader().
void ns3::Ipv6OptionHeader::SetType | ( | uint8_t | type | ) |
Set the type of the option.
type | the type of the option |
Referenced by ns3::Ipv6OptionPad1Header::Deserialize(), ns3::Ipv6OptionPadnHeader::Deserialize(), ns3::Ipv6OptionJumbogramHeader::Deserialize(), ns3::Ipv6OptionRouterAlertHeader::Deserialize(), ns3::Ipv6OptionJumbogramHeader::Ipv6OptionJumbogramHeader(), ns3::Ipv6OptionPad1Header::Ipv6OptionPad1Header(), and ns3::Ipv6OptionPadnHeader::Ipv6OptionPadnHeader().