MacRelayUnit

Package: inet.linklayer.ethernet.switch

MacRelayUnit

simple module

(no description)

MacRelayUnit

Inheritance diagram

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

Parameters

Name Type Default value Description
macTableModule string "^.macTable"

The path to the MacAddressTable module

interfaceTableModule string "^.interfaceTable"

The path to the InterfaceTable module

hasStp bool
displayStringTextFormat string "proc: %p\ndisc: %d"

Properties

Name Value Description
display i=block/switch

Gates

Name Direction Size Description
ifIn input
ifOut output
upperLayerIn input
upperLayerOut output

Signals

Name Type Unit
packetReceivedFromUpper cPacket
packetReceivedFromLower cPacket
packetSentToLower cPacket

Source code

simple MacRelayUnit like IMacRelayUnit
{
    parameters:
        @display("i=block/switch");
        string macTableModule = default("^.macTable"); // The path to the MacAddressTable module
        string interfaceTableModule = default("^.interfaceTable"); // The path to the InterfaceTable module
        bool hasStp;
        string displayStringTextFormat = default("proc: %p\ndisc: %d");
        @signal[packetSentToLower](type=cPacket);
        @signal[packetReceivedFromUpper](type=cPacket);
        @signal[packetReceivedFromLower](type=cPacket);
    gates:
        input ifIn @labels(EtherFrame);
        output ifOut @labels(EtherFrame);
        input upperLayerIn;
        output upperLayerOut;
}

File: src/inet/linklayer/ethernet/switch/MacRelayUnit.ned