INET Framework for OMNeT++/OMNEST
inet::ospfv2::Ospfv2LsaHeader Class Reference

Class generated from inet/routing/ospfv2/Ospfv2Packet.msg:90 by opp_msgtool. More...

#include <Ospfv2Packet_m.h>

Inheritance diagram for inet::ospfv2::Ospfv2LsaHeader:

Public Member Functions

 Ospfv2LsaHeader ()
 
 Ospfv2LsaHeader (const Ospfv2LsaHeader &other)
 
virtual ~Ospfv2LsaHeader ()
 
Ospfv2LsaHeaderoperator= (const Ospfv2LsaHeader &other)
 
virtual Ospfv2LsaHeaderdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual unsigned short getLsAge () const
 
virtual void setLsAge (unsigned short lsAge)
 
virtual const Ospfv2OptionsgetLsOptions () const
 
virtual Ospfv2OptionsgetLsOptionsForUpdate ()
 
virtual void setLsOptions (const Ospfv2Options &lsOptions)
 
virtual Ospfv2LsaType getLsType () const
 
virtual void setLsType (Ospfv2LsaType lsType)
 
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 int32_t getLsSequenceNumber () const
 
virtual void setLsSequenceNumber (int32_t lsSequenceNumber)
 
virtual uint16_t getLsCrc () const
 
virtual void setLsCrc (uint16_t lsCrc)
 
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 Ospfv2LsaHeader &)=delete
 

Protected Attributes

unsigned short lsAge = 0
 
Ospfv2Options lsOptions
 
Ospfv2LsaType lsType = static_cast<Ospfv2LsaType>(-1)
 
::inet::Ipv4Address linkStateID
 
::inet::Ipv4Address advertisingRouter
 
int32_t lsSequenceNumber = 0
 
uint16_t lsCrc = 0
 
::inet::CrcMode lsCrcMode = CRC_MODE_UNDEFINED
 
uint16_t lsaLength = 0
 

Private Member Functions

void copy (const Ospfv2LsaHeader &other)
 

Detailed Description

Class generated from inet/routing/ospfv2/Ospfv2Packet.msg:90 by opp_msgtool.

//
// Represents an OSPF LSA header
//
class Ospfv2LsaHeader extends cObject
{
    @packetData;
    unsigned short lsAge = 0;
    Ospfv2Options lsOptions;
    Ospfv2LsaType lsType = static_cast<Ospfv2LsaType>(-1);
    Ipv4Address linkStateID;
    Ipv4Address advertisingRouter;
    int32_t lsSequenceNumber = 0;
    uint16_t lsCrc = 0;
    CrcMode lsCrcMode = CRC_MODE_UNDEFINED;
    uint16_t lsaLength = 0;
}

Constructor & Destructor Documentation

◆ Ospfv2LsaHeader() [1/2]

inet::ospfv2::Ospfv2LsaHeader::Ospfv2LsaHeader ( )

◆ Ospfv2LsaHeader() [2/2]

inet::ospfv2::Ospfv2LsaHeader::Ospfv2LsaHeader ( const Ospfv2LsaHeader other)

◆ ~Ospfv2LsaHeader()

virtual inet::ospfv2::Ospfv2LsaHeader::~Ospfv2LsaHeader ( )
virtual

Member Function Documentation

◆ copy()

void inet::ospfv2::Ospfv2LsaHeader::copy ( const Ospfv2LsaHeader other)
private

◆ dup()

virtual Ospfv2LsaHeader* inet::ospfv2::Ospfv2LsaHeader::dup ( ) const
inlineoverridevirtual
338 {return new Ospfv2LsaHeader(*this);}

◆ getAdvertisingRouter()

◆ getAdvertisingRouterForUpdate()

virtual ::inet::Ipv4Address& inet::ospfv2::Ospfv2LsaHeader::getAdvertisingRouterForUpdate ( )
inline
357 { return const_cast<::inet::Ipv4Address&>(const_cast<Ospfv2LsaHeader*>(this)->getAdvertisingRouter());}

◆ getLinkStateID()

◆ getLinkStateIDForUpdate()

virtual ::inet::Ipv4Address& inet::ospfv2::Ospfv2LsaHeader::getLinkStateIDForUpdate ( )
inline
353 { return const_cast<::inet::Ipv4Address&>(const_cast<Ospfv2LsaHeader*>(this)->getLinkStateID());}

◆ getLsAge()

◆ getLsaLength()

◆ getLsCrc()

virtual uint16_t inet::ospfv2::Ospfv2LsaHeader::getLsCrc ( ) const
virtual

◆ getLsCrcMode()

virtual ::inet::CrcMode inet::ospfv2::Ospfv2LsaHeader::getLsCrcMode ( ) const

◆ getLsOptions()

◆ getLsOptionsForUpdate()

virtual Ospfv2Options& inet::ospfv2::Ospfv2LsaHeader::getLsOptionsForUpdate ( )
inlinevirtual
346 { return const_cast<Ospfv2Options&>(const_cast<Ospfv2LsaHeader*>(this)->getLsOptions());}

Referenced by inet::ospfv2::Ospfv2PacketSerializer::deserializeLsaHeader().

◆ getLsSequenceNumber()

◆ getLsType()

◆ operator=()

Ospfv2LsaHeader& inet::ospfv2::Ospfv2LsaHeader::operator= ( const Ospfv2LsaHeader other)

◆ operator==()

bool inet::ospfv2::Ospfv2LsaHeader::operator== ( const Ospfv2LsaHeader )
protecteddelete

◆ parsimPack()

virtual void inet::ospfv2::Ospfv2LsaHeader::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

◆ parsimUnpack()

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

◆ setAdvertisingRouter()

◆ setLinkStateID()

◆ setLsAge()

◆ setLsaLength()

◆ setLsCrc()

virtual void inet::ospfv2::Ospfv2LsaHeader::setLsCrc ( uint16_t  lsCrc)
virtual

◆ setLsCrcMode()

virtual void inet::ospfv2::Ospfv2LsaHeader::setLsCrcMode ( ::inet::CrcMode  lsCrcMode)
virtual

◆ setLsOptions()

◆ setLsSequenceNumber()

◆ setLsType()

Member Data Documentation

◆ advertisingRouter

::inet::Ipv4Address inet::ospfv2::Ospfv2LsaHeader::advertisingRouter
protected

◆ linkStateID

::inet::Ipv4Address inet::ospfv2::Ospfv2LsaHeader::linkStateID
protected

◆ lsAge

unsigned short inet::ospfv2::Ospfv2LsaHeader::lsAge = 0
protected

◆ lsaLength

uint16_t inet::ospfv2::Ospfv2LsaHeader::lsaLength = 0
protected

◆ lsCrc

uint16_t inet::ospfv2::Ospfv2LsaHeader::lsCrc = 0
protected

◆ lsCrcMode

::inet::CrcMode inet::ospfv2::Ospfv2LsaHeader::lsCrcMode = CRC_MODE_UNDEFINED
protected

◆ lsOptions

Ospfv2Options inet::ospfv2::Ospfv2LsaHeader::lsOptions
protected

◆ lsSequenceNumber

int32_t inet::ospfv2::Ospfv2LsaHeader::lsSequenceNumber = 0
protected

◆ lsType

Ospfv2LsaType inet::ospfv2::Ospfv2LsaHeader::lsType = static_cast<Ospfv2LsaType>(-1)
protected

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