NED File src/inet/linklayer/vlan/VlanReqFilter.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
Filters out packets based on the attached |
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;
//
// 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");
}