Package: inet.linklayer.virtual
VirtualTunnel
simple module(no description)
Used in compound modules
| Name | Type | Description |
|---|---|---|
| VirtualInterface | compound module |
This module implements a virtual network interface. |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| interfaceTableModule | string | ||
| realInterface | string | ||
| protocol | string | vlanId != -1 ? "ieee8021qctag" : "" | |
| address | string | "copy" | |
| vlanId | int | -1 | |
| steal | bool | vlanId != -1 |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/cogwheel |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| upperLayerIn | input | ||
| upperLayerOut | output |
Source code
simple VirtualTunnel { parameters: string interfaceTableModule; string realInterface; string protocol = default(vlanId != -1 ? "ieee8021qctag" : ""); string address @enum("auto","copy") = default("copy"); int vlanId = default(-1); bool steal = default(vlanId != -1); @display("i=block/cogwheel"); gates: input upperLayerIn; output upperLayerOut; }File: src/inet/linklayer/virtual/VirtualTunnel.ned