NED File src/inet/queueing/filter/PacketFilter.ned
Name | Type | Description |
---|---|---|
PacketFilter | simple module |
This module filters for packets matching the configured filter criteria. When the filter is pushed by a connected packet producer, it either pushes the packet to the connected packet consumer or drops it depending on the configured packet filter. Similarily, when the filter is pulled by a connected packet collector, it pulls packets from the connected packet provider until it finds one which matches the configured packet filter. |
Source code
// // Copyright (C) 2020 OpenSim Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.queueing.filter; import inet.queueing.base.PacketFilterBase; import inet.queueing.contract.IPacketFilter; // // This module filters for packets matching the configured filter criteria. // When the filter is pushed by a connected packet producer, it either pushes // the packet to the connected packet consumer or drops it depending on the // configured packet filter. Similarily, when the filter is pulled by a connected // packet collector, it pulls packets from the connected packet provider until // it finds one which matches the configured packet filter. // simple PacketFilter extends PacketFilterBase like IPacketFilter { parameters: string filterClass; // determines the packets which pass the filter, the parameter must be the name of a C++ class which implements the IPacketFilterFunction interface and is registered via Register_Class @class(PacketFilter); }