IEtherEncap

Package: inet.linklayer.ethernet

IEtherEncap

module interface

Module interface for Ethernet encapsulation/decapsulation.

Inheritance diagram

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

Implemented by

Name Type Description
EtherEncap simple module

Performs Ethernet II or Ethernet with SNAP encapsulation/decapsulation.

EtherEncapDummy compound module

Dummy encapsulation/decapsulation module for EthernetInterface.

Used in compound modules

Name Type Description
EtherHost2 compound module

An example host with one Ethernet interface and an Ethernet traffic generator directly connected to it. This host model does not contain higher layer protocols (IP, TCP). By default is configured to use half-duplex MAC (CSMA/CD).

EthernetInterface compound module

Ethernet network interface. Complements EtherMAC and EtherEncap with an output queue for QoS and RED support.

Properties

Name Value Description
display i=block/square

Source code

//
// Module interface for Ethernet encapsulation/decapsulation.
//
moduleinterface IEtherEncap
{
    parameters:
        @display("i=block/square");
    gates:
        input upperLayerIn @labels(Ieee802Ctrl/down); // higher layer
        output upperLayerOut @labels(Ieee802Ctrl/up); // higher layer
        input lowerLayerIn @labels(EtherFrame);   // to Ethernet MAC
        output lowerLayerOut @labels(EtherFrame); // to Ethernet MAC
}

File: src/inet/linklayer/ethernet/IEtherEncap.ned