Simple Module MACRelayUnit

Package: inet.linklayer.ethernet.switch
File: src/inet/linklayer/ethernet/switch/MACRelayUnit.ned

C++ definition

(no description)

MACRelayUnit

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.

Parameters:

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

The path to the MACAddressTable module

Properties:

Name Value Description
display i=block/switch

Gates:

Name Direction Size Description
ifIn [ ] input
ifOut [ ] output
stpIn input
stpOut output

Signals:

Name Type Unit
packetReceivedFromLower cPacket
packetSentToLower cPacket

Source code:

simple MACRelayUnit like IMACRelayUnit
{
    parameters:
        string macTablePath = default("^.macTable"); // The path to the MACAddressTable module
        @display("i=block/switch");
        @signal[packetSentToLower](type=cPacket);
        @signal[packetReceivedFromLower](type=cPacket);
    gates:
        input ifIn[] @labels(EtherFrame);
        output ifOut[] @labels(EtherFrame);
        input stpIn @loose;
        output stpOut @loose;
}