MacRelayUnitBase

Package: inet.linklayer.base

MacRelayUnitBase

simple module

(no description)

Inheritance diagram

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

Known subclasses

Name Type Description
Ieee8021dRelay simple module

This modul forwards frames (EtherFrame) based on their destination MAC addresses to appropriate ports.

MacRelayUnit simple module (no description)

Parameters

Name Type Default value Description
macTableModule string
interfaceTableModule string
displayStringTextFormat string "proc: %p\ndisc: %d"

Properties

Name Value Description
display i=block/switch

Gates

Name Direction Size Description
lowerLayerIn input
lowerLayerOut output
upperLayerIn input
upperLayerOut output

Signals

Name Type Unit
packetReceivedFromUpper inet::Packet
packetReceivedFromLower inet::Packet
packetDropped inet::Packet
packetSentToLower inet::Packet

Statistics

Name Title Source Record Unit Interpolation Mode
packetDropped packets dropped count, sum(packetBytes), vector(packetBytes) none

Source code

simple MacRelayUnitBase
{
    parameters:
        string macTableModule;
        string interfaceTableModule;
        string displayStringTextFormat = default("proc: %p\ndisc: %d");
        @display("i=block/switch");
        @signal[packetSentToLower](type=inet::Packet);
        @signal[packetReceivedFromUpper](type=inet::Packet);
        @signal[packetReceivedFromLower](type=inet::Packet);
        @signal[packetDropped](type=inet::Packet);
        @statistic[packetDropped](title="packets dropped"; record=count,sum(packetBytes),vector(packetBytes); interpolationmode=none);
    gates:
        input lowerLayerIn;
        output lowerLayerOut;
        input upperLayerIn;
        output upperLayerOut;
}

File: src/inet/linklayer/base/MacRelayUnitBase.ned