|
bool PacketFilter::matches(const cPacket *cpacket) const |
|
{ |
|
MatchableObject matchableObject(MatchableObject::ATTRIBUTE_FULLNAME, cpacket); |
|
// TODO: eliminate const_cast when cMatchExpression::matches becomes const |
|
if (!const_cast<PacketFilter *>(this)->packetMatchExpression.matches(&matchableObject)) |
|
return false; |
|
else if (auto packet = dynamic_cast<const Packet *>(cpacket)) { |
|
PacketDissectorCallback callback(*this); |
|
return callback.matches(packet); |
|
} |
|
else |
There may be other locations too
inet/src/inet/common/packet/PacketFilter.cc
Lines 30 to 40 in 5b3f035
There may be other locations too