Package: inet.linklayer.tun
Tun
simple module(no description)
Used in compound modules
| Name | Type | Description |
|---|---|---|
| TunInterface | compound module | (no description) |
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 |
Signals
| Name | Type | Unit |
|---|---|---|
| packetReceivedFromLower | cPacket | |
| packetReceivedFromUpper | cPacket | |
| packetSentToLower | cPacket | |
| packetSentToUpper | cPacket |
Source code
simple Tun { 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 }File: src/inet/linklayer/tun/Tun.ned