Package: inet.linklayer.ethernet.switch
MACRelayUnit
simple module(no description)
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; }File: src/inet/linklayer/ethernet/switch/MACRelayUnit.ned