22 #include "ns3/assert.h"
23 #include "ns3/uinteger.h"
38 .SetGroupName (
"Internet")
39 .AddAttribute (
"OptionNumber",
"The IPv6 option number.",
42 MakeUintegerChecker<uint8_t> ())
65 .SetGroupName (
"Internet")
110 .SetGroupName (
"Internet")
155 .SetGroupName (
"Internet")
198 static TypeId tid =
TypeId (
"ns3::Ipv6OptionRouterAlert")
200 .SetGroupName (
"Internet")
static TypeId GetTypeId()
Get the type identificator.
virtual uint8_t GetOptionNumber() const =0
Get the option number.
Ptr< Node > m_node
The node.
virtual ~Ipv6Option()
Destructor.
void SetNode(Ptr< Node > node)
Set the node.
static TypeId GetTypeId()
Get the type identificator.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method Called from Ipv6L3Protocol::Receive.
~Ipv6OptionJumbogram()
Destructor.
virtual uint8_t GetOptionNumber() const
Get the option number.
static const uint8_t OPT_NUMBER
Jumbogram option number.
Ipv6OptionJumbogram()
Constructor.
~Ipv6OptionPad1()
Destructor.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method.
virtual uint8_t GetOptionNumber() const
Get the option number.
static TypeId GetTypeId()
Get the type identificator.
static const uint8_t OPT_NUMBER
Pad1 option number.
Ipv6OptionPad1()
Constructor.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method.
static const uint8_t OPT_NUMBER
PadN option number.
~Ipv6OptionPadn()
Destructor.
virtual uint8_t GetOptionNumber() const
Get the option number.
Ipv6OptionPadn()
Constructor.
static TypeId GetTypeId()
Get the type identificator.
IPv6 Option Router Alert.
static const uint8_t OPT_NUMBER
Router alert option number.
static TypeId GetTypeId()
Get the type identificator.
virtual uint8_t Process(Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)
Process method.
Ipv6OptionRouterAlert()
Constructor.
virtual uint8_t GetOptionNumber() const
Get the option number.
~Ipv6OptionRouterAlert()
Destructor.
A base class which provides memory management and object aggregation.
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
void RemoveAtStart(uint32_t size)
Remove size bytes from the start of the current packet.
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Hold an unsigned integer type.
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.