Loopback interface module implementation.
See also: LoopbackInterface
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
LoopbackInterface | compound module |
Loopback interface. Complements the Loopback module. |
Name | Type | Default value | Description |
---|---|---|---|
interfaceTableModule | string |
The path to the InterfaceTable module |
|
mtu | int | 4470B |
Name | Value | Description |
---|---|---|
display | i=block/rxtx |
Name | Direction | Size | Description |
---|---|---|---|
netwIn | input | ||
netwOut | output |
Name | Type | Unit |
---|---|---|
packetReceivedFromUpper | cPacket | |
dropPkBitError | cPacket | |
packetSentToUpper | cPacket |
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
rcvdPkFromHL | packets received from higher layer | packetReceivedFromUpper | count, sum(packetBytes), vector(packetBytes) | none | |
passedUpPk | packets passed to higher layer | packetSentToUpper | count, sum(packetBytes), vector(packetBytes) | none | |
droppedPkBitError | packets dropped/bit error | dropPkBitError | count, sum(packetBytes), vector(packetBytes) | none |
// // Loopback interface module implementation. // // @see ~LoopbackInterface // simple Loopback { parameters: string interfaceTableModule; // The path to the InterfaceTable module int mtu @unit("B") = default(4470B); @display("i=block/rxtx"); @signal[dropPkBitError](type=cPacket); @signal[packetSentToUpper](type=cPacket); @signal[packetReceivedFromUpper](type=cPacket); @statistic[droppedPkBitError](title="packets dropped/bit error"; source=dropPkBitError; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); @statistic[rcvdPkFromHL](title="packets received from higher layer"; source=packetReceivedFromUpper; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); @statistic[passedUpPk](title="packets passed to higher layer"; source=packetSentToUpper; record=count,"sum(packetBytes)","vector(packetBytes)"; interpolationmode=none); gates: input netwIn; output netwOut; }