Icmp.ned

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

Name Type Description
Icmp simple module

ICMP implementation.

Source code

//
// Copyright (C) 2000 Institut fuer Telematik, Universitaet Karlsruhe
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//

package inet.networklayer.ipv4;

//
// ICMP implementation.
//
// @author Jochen Reber
//
simple Icmp
{
    parameters:
        string interfaceTableModule;   // The path to the InterfaceTable module
        string routingTableModule;
        string crcMode @mutable @enum("declared", "computed") = default("declared");
        int quoteLength @mutable @unit(B) = default(8B); // Number of bytes from original packet to quote in ICMP reply
        @display("i=block/control");
    gates:
        input transportIn;
        output transportOut;
        input ipIn @labels(Ipv4ControlInfo/up);  // delivered ICMP packets
        output ipOut @labels(Ipv4ControlInfo/down);  // towards network
}