VlanTag.msg

Msg File src/inet/linklayer/common/VlanTag.msg

Name Type Description
VlanTagBase class

This is an abstract base class that should not be directly added as a tag.

VlanReq class

This request determines the vlan that should be used to send the packet. It may be present on a packet from the application to the mac protocol.

VlanInd class

This indication specifies the vlan that was used to receive the packet. It may be present on a packet from the mac protocol to the application.

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;

//
// This is an abstract base class that should not be directly added as a tag.
//
class VlanTagBase extends TagBase
{
    int vlanId = -1;
}

//
// This request determines the vlan that should be used to send the packet.
// It may be present on a packet from the application to the mac protocol.
//
class VlanReq extends VlanTagBase
{
}

//
// This indication specifies the vlan that was used to receive the packet.
// It may be present on a packet from the mac protocol to the application.
//
class VlanInd extends VlanTagBase
{
}