INET Framework for OMNeT++/OMNEST
inet::ospfv3::Ospfv3LsaHeader Class Reference

Class generated from inet/routing/ospfv3/Ospfv3Packet.msg:82 by opp_msgtool. More...

#include <Ospfv3Packet_m.h>

Inheritance diagram for inet::ospfv3::Ospfv3LsaHeader:

Public Member Functions

 Ospfv3LsaHeader ()
 
 Ospfv3LsaHeader (const Ospfv3LsaHeader &other)
 
virtual ~Ospfv3LsaHeader ()
 
Ospfv3LsaHeaderoperator= (const Ospfv3LsaHeader &other)
 
virtual Ospfv3LsaHeaderdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual unsigned short getLsaAge () const
 
virtual void setLsaAge (unsigned short lsaAge)
 
virtual unsigned short getOptions () const
 
virtual void setOptions (unsigned short options)
 
virtual unsigned short getLsaType () const
 
virtual void setLsaType (unsigned short lsaType)
 
virtual const ::inet::Ipv4AddressgetLinkStateID () const
 
virtual ::inet::Ipv4AddressgetLinkStateIDForUpdate ()
 
virtual void setLinkStateID (const ::inet::Ipv4Address &linkStateID)
 
virtual const ::inet::Ipv4AddressgetAdvertisingRouter () const
 
virtual ::inet::Ipv4AddressgetAdvertisingRouterForUpdate ()
 
virtual void setAdvertisingRouter (const ::inet::Ipv4Address &advertisingRouter)
 
virtual uint32_t getLsaSequenceNumber () const
 
virtual void setLsaSequenceNumber (uint32_t lsaSequenceNumber)
 
virtual uint16_t getLsaChecksum () const
 
virtual void setLsaChecksum (uint16_t lsaChecksum)
 
virtual ::inet::CrcMode getLsCrcMode () const
 
virtual void setLsCrcMode (::inet::CrcMode lsCrcMode)
 
virtual uint16_t getLsaLength () const
 
virtual void setLsaLength (uint16_t lsaLength)
 

Protected Member Functions

bool operator== (const Ospfv3LsaHeader &)=delete
 

Protected Attributes

unsigned short lsaAge = 0
 
unsigned short options = 0
 
unsigned short lsaType = 0
 
::inet::Ipv4Address linkStateID
 
::inet::Ipv4Address advertisingRouter
 
uint32_t lsaSequenceNumber = 0
 
uint16_t lsaChecksum = 0
 
::inet::CrcMode lsCrcMode = CRC_MODE_UNDEFINED
 
uint16_t lsaLength = 0
 

Private Member Functions

void copy (const Ospfv3LsaHeader &other)
 

Detailed Description

Class generated from inet/routing/ospfv3/Ospfv3Packet.msg:82 by opp_msgtool.

//Common LSA Header - this header is present in every LSA
//triplet {lsType, linkStateID, advertisingRouter} uniquely identify the LSA
class Ospfv3LsaHeader extends cObject
{
    @packetData;
    unsigned short lsaAge;          // [sec] 16 bits
    unsigned short options;         // 8 bits
    unsigned short lsaType;         // 8 bits
    Ipv4Address linkStateID;        // 32 bits
    Ipv4Address advertisingRouter;  // 32 bits
    uint32_t lsaSequenceNumber;     // 32 bits
    uint16_t lsaChecksum;     // 16 bits
    CrcMode lsCrcMode = CRC_MODE_UNDEFINED;
    uint16_t lsaLength;
}

Constructor & Destructor Documentation

◆ Ospfv3LsaHeader() [1/2]

inet::ospfv3::Ospfv3LsaHeader::Ospfv3LsaHeader ( )

◆ Ospfv3LsaHeader() [2/2]

inet::ospfv3::Ospfv3LsaHeader::Ospfv3LsaHeader ( const Ospfv3LsaHeader other)

◆ ~Ospfv3LsaHeader()

virtual inet::ospfv3::Ospfv3LsaHeader::~Ospfv3LsaHeader ( )
virtual

Member Function Documentation

◆ copy()

void inet::ospfv3::Ospfv3LsaHeader::copy ( const Ospfv3LsaHeader other)
private

◆ dup()

virtual Ospfv3LsaHeader* inet::ospfv3::Ospfv3LsaHeader::dup ( ) const
inlineoverridevirtual
302 {return new Ospfv3LsaHeader(*this);}

◆ getAdvertisingRouter()

virtual const ::inet::Ipv4Address& inet::ospfv3::Ospfv3LsaHeader::getAdvertisingRouter ( ) const
virtual

◆ getAdvertisingRouterForUpdate()

virtual ::inet::Ipv4Address& inet::ospfv3::Ospfv3LsaHeader::getAdvertisingRouterForUpdate ( )
inline
320 { return const_cast<::inet::Ipv4Address&>(const_cast<Ospfv3LsaHeader*>(this)->getAdvertisingRouter());}

◆ getLinkStateID()

◆ getLinkStateIDForUpdate()

virtual ::inet::Ipv4Address& inet::ospfv3::Ospfv3LsaHeader::getLinkStateIDForUpdate ( )
inline
316 { return const_cast<::inet::Ipv4Address&>(const_cast<Ospfv3LsaHeader*>(this)->getLinkStateID());}

◆ getLsaAge()

◆ getLsaChecksum()

virtual uint16_t inet::ospfv3::Ospfv3LsaHeader::getLsaChecksum ( ) const
virtual

◆ getLsaLength()

◆ getLsaSequenceNumber()

◆ getLsaType()

◆ getLsCrcMode()

virtual ::inet::CrcMode inet::ospfv3::Ospfv3LsaHeader::getLsCrcMode ( ) const

◆ getOptions()

virtual unsigned short inet::ospfv3::Ospfv3LsaHeader::getOptions ( ) const
virtual

◆ operator=()

Ospfv3LsaHeader& inet::ospfv3::Ospfv3LsaHeader::operator= ( const Ospfv3LsaHeader other)

◆ operator==()

bool inet::ospfv3::Ospfv3LsaHeader::operator== ( const Ospfv3LsaHeader )
protecteddelete

◆ parsimPack()

virtual void inet::ospfv3::Ospfv3LsaHeader::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

◆ parsimUnpack()

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

◆ setAdvertisingRouter()

◆ setLinkStateID()

◆ setLsaAge()

◆ setLsaChecksum()

virtual void inet::ospfv3::Ospfv3LsaHeader::setLsaChecksum ( uint16_t  lsaChecksum)
virtual

◆ setLsaLength()

◆ setLsaSequenceNumber()

◆ setLsaType()

◆ setLsCrcMode()

virtual void inet::ospfv3::Ospfv3LsaHeader::setLsCrcMode ( ::inet::CrcMode  lsCrcMode)
virtual

◆ setOptions()

virtual void inet::ospfv3::Ospfv3LsaHeader::setOptions ( unsigned short  options)
virtual

Member Data Documentation

◆ advertisingRouter

::inet::Ipv4Address inet::ospfv3::Ospfv3LsaHeader::advertisingRouter
protected

◆ linkStateID

::inet::Ipv4Address inet::ospfv3::Ospfv3LsaHeader::linkStateID
protected

◆ lsaAge

unsigned short inet::ospfv3::Ospfv3LsaHeader::lsaAge = 0
protected

◆ lsaChecksum

uint16_t inet::ospfv3::Ospfv3LsaHeader::lsaChecksum = 0
protected

◆ lsaLength

uint16_t inet::ospfv3::Ospfv3LsaHeader::lsaLength = 0
protected

◆ lsaSequenceNumber

uint32_t inet::ospfv3::Ospfv3LsaHeader::lsaSequenceNumber = 0
protected

◆ lsaType

unsigned short inet::ospfv3::Ospfv3LsaHeader::lsaType = 0
protected

◆ lsCrcMode

::inet::CrcMode inet::ospfv3::Ospfv3LsaHeader::lsCrcMode = CRC_MODE_UNDEFINED
protected

◆ options

unsigned short inet::ospfv3::Ospfv3LsaHeader::options = 0
protected

The documentation for this class was generated from the following file:
inet::ospfv3::Ospfv3LsaHeader::getAdvertisingRouter
virtual const ::inet::Ipv4Address & getAdvertisingRouter() const
inet::Ipv4Address
Ipv4 address.
Definition: Ipv4Address.h:34
inet::ospfv3::Ospfv3LsaHeader::getLinkStateID
virtual const ::inet::Ipv4Address & getLinkStateID() const
inet::ospfv3::Ospfv3LsaHeader::Ospfv3LsaHeader
Ospfv3LsaHeader()