INET Framework for OMNeT++/OMNEST
inet::IPv6RouterAdvertisement Class Reference

Class generated from inet/networklayer/icmpv6/IPv6NDMessage.msg:118 by nedtool. More...

#include <IPv6NDMessage_m.h>

Inheritance diagram for inet::IPv6RouterAdvertisement:
inet::IPv6NDMessage inet::ICMPv6Message

Public Member Functions

 IPv6RouterAdvertisement (const char *name=nullptr, short kind=0)
 
 IPv6RouterAdvertisement (const IPv6RouterAdvertisement &other)
 
virtual ~IPv6RouterAdvertisement ()
 
IPv6RouterAdvertisementoperator= (const IPv6RouterAdvertisement &other)
 
virtual IPv6RouterAdvertisementdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual unsigned short getCurHopLimit () const
 
virtual void setCurHopLimit (unsigned short curHopLimit)
 
virtual bool getManagedAddrConfFlag () const
 
virtual void setManagedAddrConfFlag (bool managedAddrConfFlag)
 
virtual bool getOtherStatefulConfFlag () const
 
virtual void setOtherStatefulConfFlag (bool otherStatefulConfFlag)
 
virtual bool getHomeAgentFlag () const
 
virtual void setHomeAgentFlag (bool homeAgentFlag)
 
virtual unsigned short getRouterLifetime () const
 
virtual void setRouterLifetime (unsigned short routerLifetime)
 
virtual unsigned int getReachableTime () const
 
virtual void setReachableTime (unsigned int reachableTime)
 
virtual unsigned int getRetransTimer () const
 
virtual void setRetransTimer (unsigned int retransTimer)
 
virtual MACAddressgetSourceLinkLayerAddress ()
 
virtual const MACAddressgetSourceLinkLayerAddress () const
 
virtual void setSourceLinkLayerAddress (const MACAddress &sourceLinkLayerAddress)
 
virtual unsigned int getMTU () const
 
virtual void setMTU (unsigned int MTU)
 
virtual void setPrefixInformationArraySize (unsigned int size)
 
virtual unsigned int getPrefixInformationArraySize () const
 
virtual IPv6NDPrefixInformationgetPrefixInformation (unsigned int k)
 
virtual const IPv6NDPrefixInformationgetPrefixInformation (unsigned int k) const
 
virtual void setPrefixInformation (unsigned int k, const IPv6NDPrefixInformation &prefixInformation)
 
virtual MIPv6NDAdvertisementIntervalgetAdvInterval ()
 
virtual const MIPv6NDAdvertisementIntervalgetAdvInterval () const
 
virtual void setAdvInterval (const MIPv6NDAdvertisementInterval &advInterval)
 
virtual MIPv6HAInformationgetHaInformation ()
 
virtual const MIPv6HAInformationgetHaInformation () const
 
virtual void setHaInformation (const MIPv6HAInformation &haInformation)
 
- Public Member Functions inherited from inet::IPv6NDMessage
 IPv6NDMessage (const char *name=nullptr, short kind=0)
 
 IPv6NDMessage (const IPv6NDMessage &other)
 
virtual ~IPv6NDMessage ()
 
IPv6NDMessageoperator= (const IPv6NDMessage &other)
 
virtual int getCode () const
 
virtual void setCode (int code)
 
- Public Member Functions inherited from inet::ICMPv6Message
 ICMPv6Message (const char *name=nullptr, short kind=0)
 
 ICMPv6Message (const ICMPv6Message &other)
 
virtual ~ICMPv6Message ()
 
ICMPv6Messageoperator= (const ICMPv6Message &other)
 
virtual int getType () const
 
virtual void setType (int type)
 

Protected Member Functions

bool operator== (const IPv6RouterAdvertisement &)
 
- Protected Member Functions inherited from inet::IPv6NDMessage
bool operator== (const IPv6NDMessage &)
 
- Protected Member Functions inherited from inet::ICMPv6Message
bool operator== (const ICMPv6Message &)
 

Protected Attributes

unsigned short curHopLimit
 
bool managedAddrConfFlag
 
bool otherStatefulConfFlag
 
bool homeAgentFlag
 
unsigned short routerLifetime
 
unsigned int reachableTime
 
unsigned int retransTimer
 
MACAddress sourceLinkLayerAddress
 
unsigned int MTU
 
IPv6NDPrefixInformationprefixInformation
 
unsigned int prefixInformation_arraysize
 
MIPv6NDAdvertisementInterval advInterval
 
MIPv6HAInformation haInformation
 
- Protected Attributes inherited from inet::IPv6NDMessage
int code
 
- Protected Attributes inherited from inet::ICMPv6Message
int type
 

Private Member Functions

void copy (const IPv6RouterAdvertisement &other)
 

Detailed Description

Class generated from inet/networklayer/icmpv6/IPv6NDMessage.msg:118 by nedtool.

//
// Router Advertisement Message Format
// RFC 2461 Section 4.2
// RFC 3775 Section 7.1, RFC 5175 Section 3. (homeAgentFlag)
//
packet IPv6RouterAdvertisement extends IPv6NDMessage
{
    //Additional ICMP fields
    unsigned short curHopLimit;
    bool managedAddrConfFlag;    //M-bit
    bool otherStatefulConfFlag;    //O-bit
    bool homeAgentFlag = false;        //H-bit
    unsigned short routerLifetime;  // 0 indicates router is not a default router
    unsigned int reachableTime;
    unsigned int retransTimer;
    //Possible Options
    MACAddress sourceLinkLayerAddress;        //source link layer option
    unsigned int MTU;                //MTU option
    IPv6NDPrefixInformation prefixInformation[];    //Prefix Information Option
    MIPv6NDAdvertisementInterval advInterval;    //New Advertisement Interval Option (MIPv6)
    MIPv6HAInformation haInformation;    //New Home Agent Information Option (MIPv6)
}

Constructor & Destructor Documentation

inet::IPv6RouterAdvertisement::IPv6RouterAdvertisement ( const char *  name = nullptr,
short  kind = 0 
)
inet::IPv6RouterAdvertisement::IPv6RouterAdvertisement ( const IPv6RouterAdvertisement other)
virtual inet::IPv6RouterAdvertisement::~IPv6RouterAdvertisement ( )
virtual

Member Function Documentation

void inet::IPv6RouterAdvertisement::copy ( const IPv6RouterAdvertisement other)
private
virtual IPv6RouterAdvertisement* inet::IPv6RouterAdvertisement::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::IPv6NDMessage.

386 {return new IPv6RouterAdvertisement(*this);}
IPv6RouterAdvertisement(const char *name=nullptr, short kind=0)
virtual MIPv6NDAdvertisementInterval& inet::IPv6RouterAdvertisement::getAdvInterval ( )
virtual
virtual const MIPv6NDAdvertisementInterval& inet::IPv6RouterAdvertisement::getAdvInterval ( ) const
inlinevirtual

Referenced by getAdvInterval().

416 {return const_cast<IPv6RouterAdvertisement*>(this)->getAdvInterval();}
IPv6RouterAdvertisement(const char *name=nullptr, short kind=0)
virtual MIPv6NDAdvertisementInterval & getAdvInterval()
virtual unsigned short inet::IPv6RouterAdvertisement::getCurHopLimit ( ) const
virtual
virtual MIPv6HAInformation& inet::IPv6RouterAdvertisement::getHaInformation ( )
virtual
virtual const MIPv6HAInformation& inet::IPv6RouterAdvertisement::getHaInformation ( ) const
inlinevirtual

Referenced by getHaInformation().

419 {return const_cast<IPv6RouterAdvertisement*>(this)->getHaInformation();}
IPv6RouterAdvertisement(const char *name=nullptr, short kind=0)
virtual MIPv6HAInformation & getHaInformation()
virtual bool inet::IPv6RouterAdvertisement::getHomeAgentFlag ( ) const
virtual
virtual bool inet::IPv6RouterAdvertisement::getManagedAddrConfFlag ( ) const
virtual
virtual unsigned int inet::IPv6RouterAdvertisement::getMTU ( ) const
virtual
virtual bool inet::IPv6RouterAdvertisement::getOtherStatefulConfFlag ( ) const
virtual
virtual IPv6NDPrefixInformation& inet::IPv6RouterAdvertisement::getPrefixInformation ( unsigned int  k)
virtual
virtual const IPv6NDPrefixInformation& inet::IPv6RouterAdvertisement::getPrefixInformation ( unsigned int  k) const
inlinevirtual

Referenced by getPrefixInformation().

413 {return const_cast<IPv6RouterAdvertisement*>(this)->getPrefixInformation(k);}
virtual IPv6NDPrefixInformation & getPrefixInformation(unsigned int k)
IPv6RouterAdvertisement(const char *name=nullptr, short kind=0)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::IPv6RouterAdvertisement::getPrefixInformationArraySize ( ) const
virtual
virtual unsigned int inet::IPv6RouterAdvertisement::getReachableTime ( ) const
virtual
virtual unsigned int inet::IPv6RouterAdvertisement::getRetransTimer ( ) const
virtual
virtual unsigned short inet::IPv6RouterAdvertisement::getRouterLifetime ( ) const
virtual
virtual MACAddress& inet::IPv6RouterAdvertisement::getSourceLinkLayerAddress ( )
virtual
virtual const MACAddress& inet::IPv6RouterAdvertisement::getSourceLinkLayerAddress ( ) const
inlinevirtual

Referenced by getSourceLinkLayerAddress().

406 {return const_cast<IPv6RouterAdvertisement*>(this)->getSourceLinkLayerAddress();}
virtual MACAddress & getSourceLinkLayerAddress()
IPv6RouterAdvertisement(const char *name=nullptr, short kind=0)
IPv6RouterAdvertisement& inet::IPv6RouterAdvertisement::operator= ( const IPv6RouterAdvertisement other)
bool inet::IPv6RouterAdvertisement::operator== ( const IPv6RouterAdvertisement )
protected
virtual void inet::IPv6RouterAdvertisement::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::IPv6NDMessage.

Referenced by inet::doParsimPacking().

virtual void inet::IPv6RouterAdvertisement::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::IPv6NDMessage.

Referenced by inet::doParsimUnpacking().

virtual void inet::IPv6RouterAdvertisement::setAdvInterval ( const MIPv6NDAdvertisementInterval advInterval)
virtual
virtual void inet::IPv6RouterAdvertisement::setCurHopLimit ( unsigned short  curHopLimit)
virtual
virtual void inet::IPv6RouterAdvertisement::setHaInformation ( const MIPv6HAInformation haInformation)
virtual
virtual void inet::IPv6RouterAdvertisement::setHomeAgentFlag ( bool  homeAgentFlag)
virtual
virtual void inet::IPv6RouterAdvertisement::setManagedAddrConfFlag ( bool  managedAddrConfFlag)
virtual
virtual void inet::IPv6RouterAdvertisement::setMTU ( unsigned int  MTU)
virtual
virtual void inet::IPv6RouterAdvertisement::setOtherStatefulConfFlag ( bool  otherStatefulConfFlag)
virtual
virtual void inet::IPv6RouterAdvertisement::setPrefixInformation ( unsigned int  k,
const IPv6NDPrefixInformation prefixInformation 
)
virtual
virtual void inet::IPv6RouterAdvertisement::setPrefixInformationArraySize ( unsigned int  size)
virtual
virtual void inet::IPv6RouterAdvertisement::setReachableTime ( unsigned int  reachableTime)
virtual
virtual void inet::IPv6RouterAdvertisement::setRetransTimer ( unsigned int  retransTimer)
virtual
virtual void inet::IPv6RouterAdvertisement::setRouterLifetime ( unsigned short  routerLifetime)
virtual
virtual void inet::IPv6RouterAdvertisement::setSourceLinkLayerAddress ( const MACAddress sourceLinkLayerAddress)
virtual

Member Data Documentation

MIPv6NDAdvertisementInterval inet::IPv6RouterAdvertisement::advInterval
protected
unsigned short inet::IPv6RouterAdvertisement::curHopLimit
protected
MIPv6HAInformation inet::IPv6RouterAdvertisement::haInformation
protected
bool inet::IPv6RouterAdvertisement::homeAgentFlag
protected
bool inet::IPv6RouterAdvertisement::managedAddrConfFlag
protected
unsigned int inet::IPv6RouterAdvertisement::MTU
protected
bool inet::IPv6RouterAdvertisement::otherStatefulConfFlag
protected
IPv6NDPrefixInformation* inet::IPv6RouterAdvertisement::prefixInformation
protected
unsigned int inet::IPv6RouterAdvertisement::prefixInformation_arraysize
protected
unsigned int inet::IPv6RouterAdvertisement::reachableTime
protected
unsigned int inet::IPv6RouterAdvertisement::retransTimer
protected
unsigned short inet::IPv6RouterAdvertisement::routerLifetime
protected
MACAddress inet::IPv6RouterAdvertisement::sourceLinkLayerAddress
protected

The documentation for this class was generated from the following file: