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

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

#include <OSPFPacket_m.h>

Inheritance diagram for inet::ospf::OSPFPacket:
inet::ospf::OSPFDatabaseDescriptionPacket inet::ospf::OSPFHelloPacket inet::ospf::OSPFLinkStateAcknowledgementPacket inet::ospf::OSPFLinkStateRequestPacket inet::ospf::OSPFLinkStateUpdatePacket

Public Member Functions

 OSPFPacket (const char *name=nullptr, short kind=0)
 
 OSPFPacket (const OSPFPacket &other)
 
virtual ~OSPFPacket ()
 
OSPFPacketoperator= (const OSPFPacket &other)
 
virtual OSPFPacketdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
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 OSPFPacket &)
 

Protected Attributes

char version
 
char type
 
IPv4Address routerID
 
IPv4Address areaID
 
short authenticationType
 
char authentication [8]
 

Private Member Functions

void copy (const OSPFPacket &other)
 

Detailed Description

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

//
// Represents an OSPF packet header
//
packet OSPFPacket
{
    char version = 2;
    char type @enum(OSPFPacketType) = HELLO_PACKET;
    IPv4Address routerID;
    IPv4Address areaID;
    short authenticationType = 0;
    char authentication[8];
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::ospf::OSPFPacket::copy ( const OSPFPacket other)
private
virtual OSPFPacket* inet::ospf::OSPFPacket::dup ( ) const
inlineoverridevirtual
virtual IPv4Address& inet::ospf::OSPFPacket::getAreaID ( )
virtual
virtual const IPv4Address& inet::ospf::OSPFPacket::getAreaID ( ) const
inlinevirtual

Referenced by getAreaID().

137 {return const_cast<OSPFPacket*>(this)->getAreaID();}
OSPFPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address & getAreaID()
virtual char inet::ospf::OSPFPacket::getAuthentication ( unsigned int  k) const
virtual
virtual unsigned int inet::ospf::OSPFPacket::getAuthenticationArraySize ( ) const
virtual
virtual short inet::ospf::OSPFPacket::getAuthenticationType ( ) const
virtual
virtual const IPv4Address& inet::ospf::OSPFPacket::getRouterID ( ) const
inlinevirtual

Referenced by getRouterID().

134 {return const_cast<OSPFPacket*>(this)->getRouterID();}
OSPFPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address & getRouterID()
virtual char inet::ospf::OSPFPacket::getType ( ) const
virtual
virtual char inet::ospf::OSPFPacket::getVersion ( ) const
virtual
OSPFPacket& inet::ospf::OSPFPacket::operator= ( const OSPFPacket other)
bool inet::ospf::OSPFPacket::operator== ( const OSPFPacket )
protected
virtual void inet::ospf::OSPFPacket::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual
virtual void inet::ospf::OSPFPacket::setVersion ( char  version)
virtual

Member Data Documentation

IPv4Address inet::ospf::OSPFPacket::areaID
protected
char inet::ospf::OSPFPacket::authentication[8]
protected
short inet::ospf::OSPFPacket::authenticationType
protected
IPv4Address inet::ospf::OSPFPacket::routerID
protected
char inet::ospf::OSPFPacket::type
protected
char inet::ospf::OSPFPacket::version
protected

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