Refer to scheduler and processor via lib and not hydra.
[strongswan.git] / src / libcharon / network / receiver.c
index 1a25d45..a7eb424 100644 (file)
@@ -353,15 +353,15 @@ static job_requeue_t receive_packets(private_receiver_t *this)
                        {
                                DBG1(DBG_NET, "using receive delay: %dms",
                                         this->receive_delay);
-                               charon->scheduler->schedule_job_ms(charon->scheduler,
+                               lib->scheduler->schedule_job_ms(lib->scheduler,
                                                                (job_t*)process_message_job_create(message),
                                                                this->receive_delay);
                                return JOB_REQUEUE_DIRECT;
                        }
                }
        }
-       charon->processor->queue_job(charon->processor,
-                                                                (job_t*)process_message_job_create(message));
+       lib->processor->queue_job(lib->processor,
+                                                         (job_t*)process_message_job_create(message));
        return JOB_REQUEUE_DIRECT;
 }
 
@@ -426,7 +426,7 @@ receiver_t *receiver_create()
 
        this->job = callback_job_create((callback_job_cb_t)receive_packets,
                                                                        this, NULL, NULL);
-       charon->processor->queue_job(charon->processor, (job_t*)this->job);
+       lib->processor->queue_job(lib->processor, (job_t*)this->job);
 
        return &this->public;
 }