Namespace inet
DirectionTag
classThis tag specifies the intended direction of the packet as one of inbound, outbound, or undefined. The direction should be set to:
- outbound when
 - a new packet is generated (e.g. in an application or in a protocol like TCP)
 - a packet is sent to the lower layer
 - a packet is received from the upper layer
 - inbound when
 - a packet is forwarded (e.g. in a protocol like IP)
 - a packet is received from the lower layer
 - a packet is sent to the upper layer
 
Extends
| Name | Type | Description | 
|---|---|---|
| TagBase | (unknown -- not in documented files) | 
Fields
| Name | Type | Description | 
|---|---|---|
| direction | Direction | 
Shared Tagging operations (observed)
| tagAction | module | 
|---|---|
| addTagIfAbsent | MacRelayUnit, PacketDirectionReverser, RelayInterfaceSelector, Ieee8021dRelay, PacketEmitter, DestreamingReceiver, PacketReceiver, StreamThroughReceiver, ActivePacketSource, PassivePacketSource | 
| findTag | PacketDirectionReverser | 
Source code
// // This tag specifies the intended direction of the packet as one of inbound, // outbound, or undefined. The direction should be set to: // - outbound when // - a new packet is generated (e.g. in an application or in a protocol like TCP) // - a packet is sent to the lower layer // - a packet is received from the upper layer // - inbound when // - a packet is forwarded (e.g. in a protocol like IP) // - a packet is received from the lower layer // - a packet is sent to the upper layer // class DirectionTag extends TagBase { Direction direction = DIRECTION_UNDEFINED; }File: src/inet/common/DirectionTag.msg