Package: inet.linklayer.ethernet.modular
EthernetLayer
compound module(no description)
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 |
---|---|---|---|
interfaceTableModule | string | ||
hasSocketSupport | bool | false |
Properties
Name | Value | Description |
---|---|---|
display | i=block/layer |
Gates
Name | Direction | Size | Description |
---|---|---|---|
upperLayerIn | input | ||
upperLayerOut | output | ||
lowerLayerIn | input | ||
lowerLayerOut | output |
Source code
module EthernetLayer like IEthernetLayer { parameters: string interfaceTableModule; bool hasSocketSupport = default(false); *.interfaceTableModule = default(this.interfaceTableModule); *.socketTableModule = default(absPath(".socketTable")); paddingInserter.minLength = default(60B); @display("i=block/layer"); gates: input upperLayerIn; output upperLayerOut; input lowerLayerIn; output lowerLayerOut; submodules: socketTable: EthernetSocketTable if hasSocketSupport { @display("p=100,100"); } socketCommandProcessor: <default(hasSocketSupport ? "EthernetSocketCommandProcessor" : "")> like IPacketFlow { @display("p=300,100"); } macHeaderInserter: <default("EthernetMacHeaderInserter")> like IProtocolHeaderInserter { @display("p=300,200"); } paddingInserter: <default("PaddingInserter")> like IPacketFlow { @display("p=300,300"); } fcsInserter: <default("EthernetFcsInserter")> like IPacketFlow { @display("p=300,400"); } socketPacketProcessor: <default(hasSocketSupport ? "EthernetSocketPacketProcessor" : "")> like IPacketFlow { @display("p=600,100"); } macHeaderChecker: <default("EthernetMacHeaderChecker")> like IProtocolHeaderChecker { @display("p=600,200"); } fcsChecker: <default("EthernetFcsChecker")> like IPacketFilter { @display("p=600,400"); } connections: upperLayerIn --> { @display("m=n"); } --> socketCommandProcessor.in; socketCommandProcessor.out --> macHeaderInserter.in; macHeaderInserter.out --> paddingInserter.in; paddingInserter.out --> fcsInserter.in; fcsInserter.out --> { @display("m=s"); } --> lowerLayerOut; lowerLayerIn --> { @display("m=s"); } --> fcsChecker.in; fcsChecker.out --> macHeaderChecker.in; macHeaderChecker.out --> socketPacketProcessor.in; socketPacketProcessor.out --> { @display("m=n"); } --> upperLayerOut; }File: src/inet/linklayer/ethernet/modular/EthernetLayer.ned