Icmpv4SendErrorReq

Namespace: inet

class Icmpv4SendErrorReq

Request tag: asks the ICMP module to send an ICMPv4 error message. Attached to a Request sent to ICMP via the MessageDispatcher.

Usage diagram

Inheritance diagram

Extends

Name

Type

Description

TagBase

class

This is an abstract base class that should not be directly added to a message as a tag. It is used as the base class of all tags, thus it doesn’t have any fields.

Fields

Name

Type

Description

type

IcmpType

ICMPv4 type (e.g. ICMP_DESTINATION_UNREACHABLE)

code

int

ICMPv4 code (e.g. ICMP_DU_PORT_UNREACHABLE)

originalPacket

Packet *

the packet that triggered the error

Properties

Name

Value

Description

existingClass

Source code

//
// Request tag: asks the ICMP module to send an ICMPv4 error message.
// Attached to a Request sent to ICMP via the MessageDispatcher.
//
class Icmpv4SendErrorReq extends TagBase
{
    IcmpType type;          // ICMPv4 type (e.g. ICMP_DESTINATION_UNREACHABLE)
    int code;               // ICMPv4 code (e.g. ICMP_DU_PORT_UNREACHABLE)
    Packet *originalPacket @owned;  // the packet that triggered the error
}

File: src/inet/networklayer/common/Icmpv4ErrorTag.msg