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

Class generated from inet/networklayer/ipv4/ICMPMessage.msg:123 by nedtool. More...

#include <ICMPMessage_m.h>

Inheritance diagram for inet::ICMPMessage:

Public Member Functions

 ICMPMessage (const char *name=nullptr, short kind=0)
 
 ICMPMessage (const ICMPMessage &other)
 
virtual ~ICMPMessage ()
 
ICMPMessageoperator= (const ICMPMessage &other)
 
virtual ICMPMessagedup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getType () const
 
virtual void setType (int type)
 
virtual int getCode () const
 
virtual void setCode (int code)
 

Protected Member Functions

bool operator== (const ICMPMessage &)
 

Protected Attributes

int type
 
int code
 

Private Member Functions

void copy (const ICMPMessage &other)
 

Detailed Description

Class generated from inet/networklayer/ipv4/ICMPMessage.msg:123 by nedtool.

//
// ICMP message class
//
// Note: receiver MUST NOT decapsulate the datagram from ICMP error messages,
// because their contents is conceptually truncated. decapsulate() would result
// in a "length became negative" error; use getEncapsulatedMsg() instead.
//
// TODO: add originator id and sequence number and create an ICMPControlInfo
packet ICMPMessage
{
    int type @enum(ICMPType);
    int code;
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::ICMPMessage::copy ( const ICMPMessage other)
private
virtual ICMPMessage* inet::ICMPMessage::dup ( ) const
inlineoverridevirtual
240 {return new ICMPMessage(*this);}
ICMPMessage(const char *name=nullptr, short kind=0)
ICMPMessage& inet::ICMPMessage::operator= ( const ICMPMessage other)
bool inet::ICMPMessage::operator== ( const ICMPMessage )
protected
virtual void inet::ICMPMessage::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::ICMPMessage::setCode ( int  code)
virtual
virtual void inet::ICMPMessage::setType ( int  type)
virtual

Member Data Documentation

int inet::ICMPMessage::code
protected
int inet::ICMPMessage::type
protected

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