Simple Module IPTrafSink

Package: inet.applications.generic
File: src/applications/generic/IPTrafGen.ned

C++ definition

Consumes and prints packets received from the IP module. Compatible with both IPv4 and IPv6.

IPTrafSink

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties:

Name Value Description
display i=block/sink

Gates:

Name Direction Size Description
ipIn input
ipv6In input
ipOut output
ipv6Out output

Source code:

//
// Consumes and prints packets received from the IP module.
// Compatible with both IPv4 and IPv6.
//
simple IPTrafSink like IPTrafficGenerator
{
    @display("i=block/sink");
    gates:
        input ipIn @labels(IPControlInfo/up);
        input ipv6In @labels(IPv6ControlInfo/up);
        output ipOut @labels(IPControlInfo/down);
        output ipv6Out @labels(IPv6ControlInfo/down);
}