Package: inet.applications.tunapp
TunnelApp
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 | ||
interface | string | ||
protocol | string | "udp" | |
destinationAddress | string | "" | |
destinationPort | int | -1 | |
localPort | int | -1 | |
stopOperationExtraTime | double | -1s |
extra time after lifecycle stop operation finished |
stopOperationTimeout | double | 2s |
timeout value for lifecycle stop operation |
Properties
Name | Value | Description |
---|---|---|
lifecycleSupport | ||
display | i=block/app |
Gates
Name | Direction | Size | Description |
---|---|---|---|
socketIn | input | ||
socketOut | output |
Direct method calls (observed)
call to | function | info |
---|---|---|
MessageDispatcher | inet::MessageDispatcher::arrived | arrived |
InterfaceTable | inet::InterfaceTable::findInterfaceByName | findInterfaceByName |
Incoming messages (observed)
gate | msg | kind | ctrl | srcModule | tags |
---|---|---|---|---|---|
socketIn | Packet | 0 (UdpStatusInd::UDP_I_DATA) | Udp | DscpInd, EcnInd, HopLimitInd, InterfaceInd, L3AddressInd, L4PortInd, NetworkProtocolInd, SocketInd, TosInd, TransportProtocolInd | |
socketIn | Packet | 4 (TunSocketIndication::TUN_I_DATA) | Tun | InterfaceInd, NetworkProtocolInd, PacketProtocolTag, SocketInd |
Outgoing messages (observed)
gate | msg | kind | ctrl | destModule | tags |
---|---|---|---|---|---|
socketOut | Packet | 0 (UdpCommandCode::UDP_C_DATA) | Udp | DispatchProtocolReq, SocketReq | |
socketOut | Packet | 4 (TunCommandCode::TUN_C_DATA) | Tun | InterfaceReq, SocketReq | |
socketOut | Request | 1 (TunCommandCode::TUN_C_OPEN) | TunOpenCommand | Tun | InterfaceReq, SocketReq |
socketOut | Request | 1 (UdpCommandCode::UDP_C_BIND) | UdpBindCommand | Udp | DispatchProtocolReq, SocketReq |
socketOut | Request | 2 (UdpCommandCode::UDP_C_CONNECT) | UdpConnectCommand | Udp | DispatchProtocolReq, SocketReq |
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
clearTags | |
DispatchProtocolReq | addTagIfAbsent |
InterfaceReq | addTagIfAbsent |
SocketInd | findTag, getTag |
SocketReq | addTagIfAbsent |
TransportProtocolInd | getTag |
Tagging operations (observed)
tagType | tagAction |
---|---|
inet::Ipv4InterfaceData | findTag |
Source code
simple TunnelApp like IApp { parameters: string interfaceTableModule; string interface; string protocol @enum("udp","ipv4") = default("udp"); string destinationAddress = default(""); int destinationPort = default(-1); int localPort = default(-1); @lifecycleSupport; double stopOperationExtraTime @unit(s) = default(-1s); // extra time after lifecycle stop operation finished double stopOperationTimeout @unit(s) = default(2s); // timeout value for lifecycle stop operation @display("i=block/app"); gates: input socketIn; output socketOut; }File: src/inet/applications/tunapp/TunnelApp.ned