INET Framework for OMNeT++/OMNEST
inet::ospf::OSPFHelloPacket Class Reference

Class generated from inet/routing/ospfv2/OSPFPacket.msg:67 by nedtool. More...

#include <OSPFPacket_m.h>

Inheritance diagram for inet::ospf::OSPFHelloPacket:
inet::ospf::OSPFPacket

Public Member Functions

 OSPFHelloPacket (const char *name=nullptr, short kind=0)
 
 OSPFHelloPacket (const OSPFHelloPacket &other)
 
virtual ~OSPFHelloPacket ()
 
OSPFHelloPacketoperator= (const OSPFHelloPacket &other)
 
virtual OSPFHelloPacketdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual IPv4AddressgetNetworkMask ()
 
virtual const IPv4AddressgetNetworkMask () const
 
virtual void setNetworkMask (const IPv4Address &networkMask)
 
virtual short getHelloInterval () const
 
virtual void setHelloInterval (short helloInterval)
 
virtual OSPFOptionsgetOptions ()
 
virtual const OSPFOptionsgetOptions () const
 
virtual void setOptions (const OSPFOptions &options)
 
virtual char getRouterPriority () const
 
virtual void setRouterPriority (char routerPriority)
 
virtual long getRouterDeadInterval () const
 
virtual void setRouterDeadInterval (long routerDeadInterval)
 
virtual IPv4AddressgetDesignatedRouter ()
 
virtual const IPv4AddressgetDesignatedRouter () const
 
virtual void setDesignatedRouter (const IPv4Address &designatedRouter)
 
virtual IPv4AddressgetBackupDesignatedRouter ()
 
virtual const IPv4AddressgetBackupDesignatedRouter () const
 
virtual void setBackupDesignatedRouter (const IPv4Address &backupDesignatedRouter)
 
virtual void setNeighborArraySize (unsigned int size)
 
virtual unsigned int getNeighborArraySize () const
 
virtual IPv4AddressgetNeighbor (unsigned int k)
 
virtual const IPv4AddressgetNeighbor (unsigned int k) const
 
virtual void setNeighbor (unsigned int k, const IPv4Address &neighbor)
 
- Public Member Functions inherited from inet::ospf::OSPFPacket
 OSPFPacket (const char *name=nullptr, short kind=0)
 
 OSPFPacket (const OSPFPacket &other)
 
virtual ~OSPFPacket ()
 
OSPFPacketoperator= (const OSPFPacket &other)
 
virtual char getVersion () const
 
virtual void setVersion (char version)
 
virtual char getType () const
 
virtual void setType (char type)
 
virtual IPv4AddressgetRouterID ()
 
virtual const IPv4AddressgetRouterID () const
 
virtual void setRouterID (const IPv4Address &routerID)
 
virtual IPv4AddressgetAreaID ()
 
virtual const IPv4AddressgetAreaID () const
 
virtual void setAreaID (const IPv4Address &areaID)
 
virtual short getAuthenticationType () const
 
virtual void setAuthenticationType (short authenticationType)
 
virtual unsigned int getAuthenticationArraySize () const
 
virtual char getAuthentication (unsigned int k) const
 
virtual void setAuthentication (unsigned int k, char authentication)
 

Protected Member Functions

bool operator== (const OSPFHelloPacket &)
 
- Protected Member Functions inherited from inet::ospf::OSPFPacket
bool operator== (const OSPFPacket &)
 

Protected Attributes

IPv4Address networkMask
 
short helloInterval
 
OSPFOptions options
 
char routerPriority
 
long routerDeadInterval
 
IPv4Address designatedRouter
 
IPv4Address backupDesignatedRouter
 
IPv4Addressneighbor
 
unsigned int neighbor_arraysize
 
- Protected Attributes inherited from inet::ospf::OSPFPacket
char version
 
char type
 
IPv4Address routerID
 
IPv4Address areaID
 
short authenticationType
 
char authentication [8]
 

Private Member Functions

void copy (const OSPFHelloPacket &other)
 

Detailed Description

Class generated from inet/routing/ospfv2/OSPFPacket.msg:67 by nedtool.

//
// Represents an OSPF Hello packet
//
packet OSPFHelloPacket extends OSPFPacket
{
    IPv4Address networkMask;
    short helloInterval = 5;
    OSPFOptions options;
    char routerPriority = 0;
    long routerDeadInterval = 0;
    IPv4Address designatedRouter;
    IPv4Address backupDesignatedRouter;
    IPv4Address neighbor[];
}

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from inet::ospf::OSPFPacket.

197 {return new OSPFHelloPacket(*this);}
OSPFHelloPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address& inet::ospf::OSPFHelloPacket::getBackupDesignatedRouter ( )
virtual
virtual const IPv4Address& inet::ospf::OSPFHelloPacket::getBackupDesignatedRouter ( ) const
inlinevirtual

Referenced by getBackupDesignatedRouter().

218 {return const_cast<OSPFHelloPacket*>(this)->getBackupDesignatedRouter();}
OSPFHelloPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address & getBackupDesignatedRouter()
virtual IPv4Address& inet::ospf::OSPFHelloPacket::getDesignatedRouter ( )
virtual
virtual const IPv4Address& inet::ospf::OSPFHelloPacket::getDesignatedRouter ( ) const
inlinevirtual

Referenced by getDesignatedRouter().

215 {return const_cast<OSPFHelloPacket*>(this)->getDesignatedRouter();}
virtual IPv4Address & getDesignatedRouter()
OSPFHelloPacket(const char *name=nullptr, short kind=0)
virtual short inet::ospf::OSPFHelloPacket::getHelloInterval ( ) const
virtual
virtual IPv4Address& inet::ospf::OSPFHelloPacket::getNeighbor ( unsigned int  k)
virtual
virtual const IPv4Address& inet::ospf::OSPFHelloPacket::getNeighbor ( unsigned int  k) const
inlinevirtual

Referenced by getNeighbor().

223 {return const_cast<OSPFHelloPacket*>(this)->getNeighbor(k);}
virtual IPv4Address & getNeighbor(unsigned int k)
OSPFHelloPacket(const char *name=nullptr, short kind=0)
const double k
Definition: QAM16Modulation.cc:24
virtual unsigned int inet::ospf::OSPFHelloPacket::getNeighborArraySize ( ) const
virtual
virtual IPv4Address& inet::ospf::OSPFHelloPacket::getNetworkMask ( )
virtual
virtual const IPv4Address& inet::ospf::OSPFHelloPacket::getNetworkMask ( ) const
inlinevirtual

Referenced by getNetworkMask().

203 {return const_cast<OSPFHelloPacket*>(this)->getNetworkMask();}
virtual IPv4Address & getNetworkMask()
OSPFHelloPacket(const char *name=nullptr, short kind=0)
virtual OSPFOptions& inet::ospf::OSPFHelloPacket::getOptions ( )
virtual
virtual const OSPFOptions& inet::ospf::OSPFHelloPacket::getOptions ( ) const
inlinevirtual

Referenced by getOptions().

208 {return const_cast<OSPFHelloPacket*>(this)->getOptions();}
OSPFHelloPacket(const char *name=nullptr, short kind=0)
virtual OSPFOptions & getOptions()
virtual long inet::ospf::OSPFHelloPacket::getRouterDeadInterval ( ) const
virtual
virtual char inet::ospf::OSPFHelloPacket::getRouterPriority ( ) const
virtual
OSPFHelloPacket& inet::ospf::OSPFHelloPacket::operator= ( const OSPFHelloPacket other)
bool inet::ospf::OSPFHelloPacket::operator== ( const OSPFHelloPacket )
protected
virtual void inet::ospf::OSPFHelloPacket::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::ospf::OSPFPacket.

Referenced by inet::ospf::doParsimPacking().

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

Reimplemented from inet::ospf::OSPFPacket.

Referenced by inet::ospf::doParsimUnpacking().

virtual void inet::ospf::OSPFHelloPacket::setBackupDesignatedRouter ( const IPv4Address backupDesignatedRouter)
virtual
virtual void inet::ospf::OSPFHelloPacket::setDesignatedRouter ( const IPv4Address designatedRouter)
virtual
virtual void inet::ospf::OSPFHelloPacket::setHelloInterval ( short  helloInterval)
virtual
virtual void inet::ospf::OSPFHelloPacket::setNeighbor ( unsigned int  k,
const IPv4Address neighbor 
)
virtual
virtual void inet::ospf::OSPFHelloPacket::setNeighborArraySize ( unsigned int  size)
virtual
virtual void inet::ospf::OSPFHelloPacket::setNetworkMask ( const IPv4Address networkMask)
virtual
virtual void inet::ospf::OSPFHelloPacket::setOptions ( const OSPFOptions options)
virtual
virtual void inet::ospf::OSPFHelloPacket::setRouterDeadInterval ( long  routerDeadInterval)
virtual
virtual void inet::ospf::OSPFHelloPacket::setRouterPriority ( char  routerPriority)
virtual

Member Data Documentation

IPv4Address inet::ospf::OSPFHelloPacket::backupDesignatedRouter
protected
IPv4Address inet::ospf::OSPFHelloPacket::designatedRouter
protected
short inet::ospf::OSPFHelloPacket::helloInterval
protected
IPv4Address* inet::ospf::OSPFHelloPacket::neighbor
protected
unsigned int inet::ospf::OSPFHelloPacket::neighbor_arraysize
protected
IPv4Address inet::ospf::OSPFHelloPacket::networkMask
protected
OSPFOptions inet::ospf::OSPFHelloPacket::options
protected
long inet::ospf::OSPFHelloPacket::routerDeadInterval
protected
char inet::ospf::OSPFHelloPacket::routerPriority
protected

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