INET Framework for OMNeT++/OMNEST
|
Class generated from inet/networklayer/ipv6/IPv6ExtensionHeaders.msg:66
by nedtool.
More...
#include <IPv6ExtensionHeaders_m.h>
Public Member Functions | |
virtual | ~IPv6RoutingHeader_Base () |
virtual IPv6RoutingHeader_Base * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual uint8_t | getRoutingType () const |
virtual void | setRoutingType (uint8_t routingType) |
virtual uint8_t | getSegmentsLeft () const |
virtual void | setSegmentsLeft (uint8_t segmentsLeft) |
virtual void | setAddressArraySize (unsigned int size) |
virtual unsigned int | getAddressArraySize () const |
virtual IPv6Address & | getAddress (unsigned int k) |
virtual const IPv6Address & | getAddress (unsigned int k) const |
virtual void | setAddress (unsigned int k, const IPv6Address &address) |
Public Member Functions inherited from inet::IPv6ExtensionHeader | |
IPv6ExtensionHeader () | |
IPv6ExtensionHeader (const IPv6ExtensionHeader &other) | |
virtual | ~IPv6ExtensionHeader () |
IPv6ExtensionHeader & | operator= (const IPv6ExtensionHeader &other) |
virtual short | getExtensionType () const |
virtual void | setExtensionType (short extensionType) |
virtual short | getByteLength () const |
virtual void | setByteLength (short byteLength) |
Protected Member Functions | |
bool | operator== (const IPv6RoutingHeader_Base &) |
IPv6RoutingHeader_Base () | |
IPv6RoutingHeader_Base (const IPv6RoutingHeader_Base &other) | |
IPv6RoutingHeader_Base & | operator= (const IPv6RoutingHeader_Base &other) |
Protected Member Functions inherited from inet::IPv6ExtensionHeader | |
bool | operator== (const IPv6ExtensionHeader &) |
Protected Attributes | |
uint8_t | routingType |
uint8_t | segmentsLeft |
IPv6Address * | address |
unsigned int | address_arraysize |
Protected Attributes inherited from inet::IPv6ExtensionHeader | |
short | extensionType |
short | byteLength |
Private Member Functions | |
void | copy (const IPv6RoutingHeader_Base &other) |
Class generated from inet/networklayer/ipv6/IPv6ExtensionHeaders.msg:66
by nedtool.
// // Routing Header // RFC 2460 Section 4.4 // Next Header Value: 43 // class IPv6RoutingHeader extends IPv6ExtensionHeader { @customize(true); extensionType = IP_PROT_IPv6EXT_ROUTING; byteLength = 8; //byteLength = 8+16*getAddressArraySize() when routingType == 0 uint8 routingType; uint8 segmentsLeft; IPv6Address address[]; }
IPv6RoutingHeader_Base is only useful if it gets subclassed, and IPv6RoutingHeader is derived from it. The minimum code to be written for IPv6RoutingHeader is the following:
class INET_API IPv6RoutingHeader : public IPv6RoutingHeader_Base { private: void copy(const IPv6RoutingHeader& other) { ... }
public: IPv6RoutingHeader() : IPv6RoutingHeader_Base() {} IPv6RoutingHeader(const IPv6RoutingHeader& other) : IPv6RoutingHeader_Base(other) {copy(other);} IPv6RoutingHeader& operator=(const IPv6RoutingHeader& other) {if (this==&other) return *this; IPv6RoutingHeader_Base::operator=(other); copy(other); return *this;} // ADD CODE HERE to redefine and implement pure virtual functions from IPv6RoutingHeader_Base };
|
protected |
|
protected |
|
virtual |
|
private |
|
inlineoverridevirtual |
Reimplemented from inet::IPv6ExtensionHeader.
Reimplemented in inet::IPv6RoutingHeader.
|
virtual |
|
inlinevirtual |
Referenced by getAddress().
|
virtual |
Referenced by inet::serializer::IPv6Serializer::serialize(), and inet::xMIPv6::validateType2RH().
|
virtual |
Referenced by inet::IPv6::processExtensionHeaders(), and inet::serializer::IPv6Serializer::serialize().
|
virtual |
Referenced by inet::xMIPv6::processType2RH(), and inet::serializer::IPv6Serializer::serialize().
|
protected |
Referenced by inet::IPv6RoutingHeader::operator=().
|
protected |
|
overridevirtual |
Reimplemented from inet::IPv6ExtensionHeader.
|
overridevirtual |
Reimplemented from inet::IPv6ExtensionHeader.
|
virtual |
Referenced by inet::IPv6Tunneling::encapsulateDatagram().
|
virtual |
Reimplemented in inet::IPv6RoutingHeader.
Referenced by inet::IPv6RoutingHeader::setAddressArraySize().
|
virtual |
Referenced by inet::IPv6Tunneling::encapsulateDatagram().
|
virtual |
Referenced by inet::IPv6Tunneling::encapsulateDatagram().
|
protected |
|
protected |
|
protected |
|
protected |