Package: inet.linklayer.tun
TunInterface
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 |
|---|---|---|---|
| interfaceTableModule | string |
The path to the InterfaceTable module |
|
| mtu | int | 1500B |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/tunnel |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| upperLayerIn | input |
from upper layers |
|
| upperLayerOut | output |
to upper layers |
|
| appIn | input |
from application |
|
| appOut | output |
to application |
Signals
| Name | Type | Unit |
|---|---|---|
| packetReceivedFromLower | cPacket | |
| packetReceivedFromUpper | cPacket | |
| packetSentToLower | cPacket | |
| packetSentToUpper | cPacket |
Source code
simple TunInterface like ITunNic { parameters: string interfaceTableModule; // The path to the InterfaceTable module int mtu @unit("B") = default(1500B); @display("i=block/tunnel"); @signal[packetSentToLower](type=cPacket); @signal[packetReceivedFromLower](type=cPacket); @signal[packetSentToUpper](type=cPacket); @signal[packetReceivedFromUpper](type=cPacket); gates: input upperLayerIn; // from upper layers output upperLayerOut; // to upper layers input appIn; // from application output appOut; // to application }File: src/inet/linklayer/tun/TunInterface.ned