IPv6 Option base. More...
#include <ipv6-option.h>


Public Member Functions | |
| virtual | ~Ipv6Option () |
| Destructor. | |
| void | SetNode (Ptr< Node > node) |
| Set the node. | |
| virtual uint8_t | GetOptionNumber () const =0 |
| Get the option number. | |
| virtual uint8_t | Process (Ptr< Packet > packet, uint8_t offset, Ipv6Header const &ipv6Header, bool &isDropped)=0 |
| Process method. | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type identificator. | |
IPv6 Option base.
If you want to implement a new IPv6 option, all you have to do is implement a subclass of this class and add it to an Ipv6OptionDemux.
| virtual uint8_t ns3::Ipv6Option::GetOptionNumber | ( | ) | const [pure virtual] |
Get the option number.
Implemented in ns3::Ipv6OptionPad1, ns3::Ipv6OptionPadn, ns3::Ipv6OptionJumbogram, and ns3::Ipv6OptionRouterAlert.
| static TypeId ns3::Ipv6Option::GetTypeId | ( | void | ) | [static] |
Get the type identificator.
This method returns the TypeId associated to ns3::Ipv6Option.
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
Reimplemented in ns3::Ipv6OptionPad1, ns3::Ipv6OptionPadn, ns3::Ipv6OptionJumbogram, and ns3::Ipv6OptionRouterAlert.
| virtual uint8_t ns3::Ipv6Option::Process | ( | Ptr< Packet > | packet, | |
| uint8_t | offset, | |||
| Ipv6Header const & | ipv6Header, | |||
| bool & | isDropped | |||
| ) | [pure 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 |
Implemented in ns3::Ipv6OptionPad1, ns3::Ipv6OptionPadn, ns3::Ipv6OptionJumbogram, and ns3::Ipv6OptionRouterAlert.
1.7.1