22 #include "ns3/assert.h"
23 #include "ns3/uinteger.h"
39 .AddAttribute (
"OptionNumber",
"The IPv6 option number.",
42 MakeUintegerChecker<uint8_t> ())
66 .AddConstructor<Ipv6OptionPad1> ()
111 .AddConstructor<Ipv6OptionPadn> ()
156 .AddConstructor<Ipv6OptionJumbogram> ()
199 static TypeId tid =
TypeId (
"ns3::Ipv6OptionRouterAlert")
201 .AddConstructor<Ipv6OptionRouterAlert> ()
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
Ipv6OptionRouterAlert()
Constructor.
virtual ~Ipv6Option()
Destructor.
#define NS_LOG_FUNCTION(parameters)
Doxygen introspection did not find any typical Config paths.
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
static TypeId GetTypeId()
Get the type identificator.
static TypeId GetTypeId()
Get the type identificator.
Ipv6OptionPadn()
Constructor.
#define NS_LOG_FUNCTION_NOARGS()
Output the name of the function.
static const uint8_t OPT_NUMBER
Router alert option number.
static const uint8_t OPT_NUMBER
Pad1 option number.
Ipv6OptionJumbogram()
Constructor.
static TypeId GetTypeId()
Get the type identificator.
Ipv6OptionPad1()
Constructor.
~Ipv6OptionPad1()
Destructor.
void RemoveAtStart(uint32_t size)
Remove size bytes from the start of the current packet.
virtual uint8_t GetOptionNumber() const
Get the option number.
Hold an unsigned integer type.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method Called from Ipv6L3Protocol::Receive.
void SetNode(Ptr< Node > node)
Set the node.
~Ipv6OptionRouterAlert()
Destructor.
static const uint8_t OPT_NUMBER
PadN option number.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method.
Ptr< Packet > Copy(void) const
virtual uint8_t GetOptionNumber() const =0
Get the option number.
static TypeId GetTypeId()
Get the type identificator.
Doxygen introspection did not find any typical Config paths.
~Ipv6OptionPadn()
Destructor.
Doxygen introspection did not find any typical Config paths.
virtual uint8_t GetOptionNumber() const
Get the option number.
~Ipv6OptionJumbogram()
Destructor.
virtual uint8_t GetOptionNumber() const
Get the option number.
virtual uint8_t GetOptionNumber() const
Get the option number.
static TypeId GetTypeId()
Get the type identificator.
static const uint8_t OPT_NUMBER
Jumbogram option number.
Ptr< Node > m_node
The node.
NS_LOG_COMPONENT_DEFINE("Ipv6Option")
a base class which provides memory management and object aggregation
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method.
Doxygen introspection did not find any typical Config paths.
Doxygen introspection did not find any typical Config paths.
a unique identifier for an interface.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method.
TypeId SetParent(TypeId tid)