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

Class generated from inet/routing/rip/RIPPacket.msg:69 by nedtool. More...

#include <RIPPacket_m.h>

Inheritance diagram for inet::RIPPacket:

Public Member Functions

 RIPPacket (const char *name=nullptr, short kind=0)
 
 RIPPacket (const RIPPacket &other)
 
virtual ~RIPPacket ()
 
RIPPacketoperator= (const RIPPacket &other)
 
virtual RIPPacketdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual unsigned char getCommand () const
 
virtual void setCommand (unsigned char command)
 
virtual void setEntryArraySize (unsigned int size)
 
virtual unsigned int getEntryArraySize () const
 
virtual RIPEntrygetEntry (unsigned int k)
 
virtual const RIPEntrygetEntry (unsigned int k) const
 
virtual void setEntry (unsigned int k, const RIPEntry &entry)
 

Protected Member Functions

bool operator== (const RIPPacket &)
 

Protected Attributes

unsigned char command
 
RIPEntryentry
 
unsigned int entry_arraysize
 

Private Member Functions

void copy (const RIPPacket &other)
 

Detailed Description

Class generated from inet/routing/rip/RIPPacket.msg:69 by nedtool.

//
// RIPv2 packet
//
// note: Authentication entry is not allowed
//
packet RIPPacket
{
    unsigned char command @enum(RIPCommand);
    // version is fixed: 2
    RIPEntry entry[];
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::RIPPacket::copy ( const RIPPacket other)
private
virtual RIPPacket* inet::RIPPacket::dup ( ) const
inlineoverridevirtual
137 {return new RIPPacket(*this);}
RIPPacket(const char *name=nullptr, short kind=0)
virtual unsigned char inet::RIPPacket::getCommand ( ) const
virtual
virtual const RIPEntry& inet::RIPPacket::getEntry ( unsigned int  k) const
inlinevirtual

Referenced by getEntry().

147 {return const_cast<RIPPacket*>(this)->getEntry(k);}
virtual RIPEntry & getEntry(unsigned int k)
RIPPacket(const char *name=nullptr, short kind=0)
const double k
Definition: QAM16Modulation.cc:24
RIPPacket& inet::RIPPacket::operator= ( const RIPPacket other)
bool inet::RIPPacket::operator== ( const RIPPacket )
protected
virtual void inet::RIPPacket::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::RIPPacket::setCommand ( unsigned char  command)
virtual
virtual void inet::RIPPacket::setEntry ( unsigned int  k,
const RIPEntry entry 
)
virtual
virtual void inet::RIPPacket::setEntryArraySize ( unsigned int  size)
virtual

Member Data Documentation

unsigned char inet::RIPPacket::command
protected
RIPEntry* inet::RIPPacket::entry
protected
unsigned int inet::RIPPacket::entry_arraysize
protected

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