ns-3
|
IPv6 Option Padn. More...
#include <ipv6-option.h>
Public Member Functions | |
Ipv6OptionPadn () | |
Constructor. | |
~Ipv6OptionPadn () | |
Destructor. | |
virtual uint8_t | GetOptionNumber () const |
Get the option number. | |
virtual uint8_t | Process (Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped) |
Process method. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type identificator. | |
Static Public Attributes | |
static const uint8_t | OPT_NUMBER = 60 |
PadN option number. |
IPv6 Option Padn.
uint8_t ns3::Ipv6OptionPadn::GetOptionNumber | ( | ) | const [virtual] |
Get the option number.
Implements ns3::Ipv6Option.
References NS_LOG_FUNCTION_NOARGS, and OPT_NUMBER.
TypeId ns3::Ipv6OptionPadn::GetTypeId | ( | void | ) | [static] |
Get the type identificator.
This method returns the TypeId associated to ns3::Ipv6OptionPadn.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
Attributes defined in parent class ns3::Ipv6Option:
No TraceSources defined for this type.
Reimplemented from ns3::Ipv6Option.
References ns3::TypeId::SetParent().
uint8_t ns3::Ipv6OptionPadn::Process | ( | Ptr< Packet > | packet, |
uint8_t | offset, | ||
Ipv6Header const & | ipv6Header, | ||
bool & | isDropped | ||
) | [virtual] |
Process method.
Called from Ipv6L3Protocol::Receive.
packet | the packet |
offset | the offset of the extension to process |
ipv6Header | the IPv6 header of packet received |
isDropped | if the packet must be dropped |
Implements ns3::Ipv6Option.
References ns3::Packet::Copy(), ns3::Ipv6OptionPadnHeader::GetSerializedSize(), NS_LOG_FUNCTION, ns3::Packet::RemoveAtStart(), and ns3::Packet::RemoveHeader().