MSG File src/inet/common/DirectionTag.msg¶
Name |
Type |
Description |
|---|---|---|
enum |
(no description) |
|
class |
This tag specifies the intended direction of the packet as one of inbound, outbound, or undefined. The direction should be set to: |
Source code¶
//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
import inet.common.INETDefs;
import inet.common.TagBase;
namespace inet;
enum Direction
{
DIRECTION_UNDEFINED = -1;
DIRECTION_INBOUND = 0;
DIRECTION_OUTBOUND = 1;
}
//
// 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;
}