VlanReqFilter.ned

NED File src/inet/linklayer/vlan/VlanReqFilter.ned

Name Type Description
VlanReqFilter simple module

This module filters out packets based on the attached VlanReq tag.

Source code

//
// Copyright (C) 2020 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//


package inet.linklayer.vlan;

import inet.queueing.base.PacketFilterBase;
import inet.queueing.contract.IPacketFilter;

//
// This module filters out packets based on the attached VlanReq tag.
//
simple VlanReqFilter extends PacketFilterBase like IPacketFilter
{
    parameters:
        string interfaceTableModule;
        object acceptedVlanIds = default({}); // maps network interface name to a list of accepted VLAN ids, '*' as interface name matches all interfaces, -1 VLAN id matches if no tag is present
        @class(VlanReqFilter);
        @display("i=block/filter");
}