Package: inet.emulation.linklayer.ethernet
ExtLowerEthernetInterface
compound moduleThis module provides an Ethernet network interface suitable for emulation. The lower part of the network interface is realized in the real world using a real ethernet socket of the host computer which is running the simulation.
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.
Extends
Name | Type | Description |
---|---|---|
ExtInterface | compound module |
This module provides a base module for external network interfaces. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "%a (%i)\n%m" | |
interfaceTableModule | string | ||
device | string | ||
namespace | string | "" | |
copyConfiguration | string | "" | |
address | string | "auto" | |
broadcast | bool | true | |
multicast | bool | true | |
pointToPoint | bool | false | |
mtu | int | 4470B |
Properties
Name | Value | Description |
---|---|---|
class | ExtInterface | |
display | i=block/ifcard |
Gates
Name | Direction | Size | Description |
---|---|---|---|
upperLayerIn | input | ||
upperLayerOut | output | ||
phys | inout |
Unassigned submodule parameters
Name | Type | Default value | Description |
---|---|---|---|
socket.device | string |
name of existing real ethernet device |
|
socket.namespace | string | "" | |
socket.packetNameFormat | string | "Ext-%p-%t-%n" |
name of received packets |
Source code
// // This module provides an Ethernet network interface suitable for emulation. // The lower part of the network interface is realized in the real world using // a real ethernet socket of the host computer which is running the simulation. // module ExtLowerEthernetInterface extends ExtInterface like IEthernetInterface { parameters: @display("i=block/ifcard"); gates: inout phys @loose; submodules: encap: <default("EtherEncap")> like IEtherEncap { parameters: @display("p=100,100"); } socket: ExtEthernetSocket { parameters: @display("p=100,300"); } connections allowunconnected: upperLayerIn --> { @display("m=n"); } --> encap.upperLayerIn if exists(encap); upperLayerOut <-- { @display("m=n"); } <-- encap.upperLayerOut if exists(encap); encap.lowerLayerOut --> socket.upperLayerIn if exists(encap); encap.lowerLayerIn <-- socket.upperLayerOut if exists(encap); upperLayerIn --> { @display("m=n"); } --> socket.upperLayerIn if !exists(encap); upperLayerOut <-- { @display("m=n"); } <-- socket.upperLayerOut if !exists(encap); }File: src/inet/emulation/linklayer/ethernet/ExtLowerEthernetInterface.ned