private boolean filterPacket(Packet packet) {

        // check equality to all filter keywords
        for (String filter : filters) {
            if (!packet.toString().contains(filter))
                return false;
        }

        // do size comparison for the bounds
        if (compareSize) {
            if (!(packet.getSize()<=lowerThan)) {
                return false;
            }
            if (!(packet.getSize()>=greaterThan)) {
                return false;
            }
        }

        // if no filter-fails happened
        return true;
    }