INET Framework for OMNeT++/OMNEST
|
Class generated from inet/networklayer/ipv4/ICMPMessage.msg:123
by nedtool.
More...
#include <ICMPMessage_m.h>
Public Member Functions | |
ICMPMessage (const char *name=nullptr, short kind=0) | |
ICMPMessage (const ICMPMessage &other) | |
virtual | ~ICMPMessage () |
ICMPMessage & | operator= (const ICMPMessage &other) |
virtual ICMPMessage * | dup () 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) |
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; }
inet::ICMPMessage::ICMPMessage | ( | const char * | name = nullptr , |
short | kind = 0 |
||
) |
inet::ICMPMessage::ICMPMessage | ( | const ICMPMessage & | other | ) |
|
virtual |
|
private |
|
inlineoverridevirtual |
|
virtual |
|
virtual |
Referenced by inet::InetPacketPrinter2::formatICMPPacket(), inet::InetPacketPrinter2::formatPingPayload(), inet::IPv4::handleIncomingICMP(), inet::ErrorHandling::handleMessage(), inet::InetPacketPrinter::printICMPPacket(), inet::ICMP::processICMPMessage(), inet::ICMP::sendErrorMessage(), and inet::serializer::ICMPSerializer::serialize().
ICMPMessage& inet::ICMPMessage::operator= | ( | const ICMPMessage & | other | ) |
|
protected |
|
overridevirtual |
Referenced by inet::doParsimPacking().
|
overridevirtual |
Referenced by inet::doParsimUnpacking().
|
virtual |
Referenced by inet::ICMP::sendErrorMessage().
|
virtual |
Referenced by inet::ICMP::processEchoRequest(), inet::ICMP::sendEchoRequest(), and inet::ICMP::sendErrorMessage().
|
protected |
|
protected |