Package: inet.linklayer.tun
TunInterface
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.
Extends
| Name | Type | Description |
|---|---|---|
| InterfaceEntry | compound module | (no description) |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| displayStringTextFormat | string | "%a (%i)\n%m" | |
| interfaceTableModule | string |
The path to the InterfaceTable module |
|
| mtu | int | 1500B |
Properties
| Name | Value | Description |
|---|---|---|
| class | InterfaceEntry | |
| display | i=block/tunnel |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| upperLayerIn | input |
from upper layers |
|
| upperLayerOut | output |
to upper layers |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| tun.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| tun.mtu | int | 1500B |
Source code
module TunInterface extends InterfaceEntry like ITunnelInterface { parameters: @class(InterfaceEntry); string interfaceTableModule; // The path to the InterfaceTable module int mtu @unit(B) = default(1500B); @display("i=block/tunnel"); *.interfaceTableModule = default(absPath(interfaceTableModule)); gates: input upperLayerIn; // from upper layers output upperLayerOut; // to upper layers submodules: tun: Tun { @display("p=100,100"); } connections: upperLayerIn --> { @display("m=n"); } --> tun.upperLayerIn; upperLayerOut <-- { @display("m=n"); } <-- tun.upperLayerOut; }File: src/inet/linklayer/tun/TunInterface.ned