Icmp

Package: inet.networklayer.ipv4

Icmp

simple module

ICMP implementation.

Author: Jochen Reber, Andras Varga

Icmp

Used in compound modules

Name Type Description
Ipv4NetworkLayer compound module

Network layer of an IPv4 node.

Parameters

Name Type Default value Description
interfaceTableModule string

The path to the InterfaceTable module

routingTableModule string
crcMode string "declared"

Properties

Name Value Description
display i=block/control

Gates

Name Direction Size Description
transportIn input
transportOut output
ipIn input

delivered ICMP packets

ipOut output

towards network

Source code

//
// ICMP implementation.
//
// @author Jochen Reber, Andras Varga
//
simple Icmp
{
    parameters:
        string interfaceTableModule;   // The path to the InterfaceTable module
        string routingTableModule;
        string crcMode @enum("declared","computed") = default("declared");
        @display("i=block/control");
    gates:
        input transportIn;
        output transportOut;
        input ipIn @labels(Ipv4ControlInfo/up);  // delivered ICMP packets
        output ipOut @labels(Ipv4ControlInfo/down);  // towards network
}

File: src/inet/networklayer/ipv4/Icmp.ned