Refer to scheduler and processor via lib and not hydra.
[strongswan.git] / src / libcharon / network / receiver.c
index b53dea4..a7eb424 100644 (file)
@@ -146,7 +146,7 @@ static void send_notify(message_t *request, notify_type_t type, chunk_t data)
                ike_sa_id->switch_initiator(ike_sa_id);
                response->set_ike_sa_id(response, ike_sa_id);
                response->add_notify(response, FALSE, type, data);
-               if (response->generate(response, NULL, NULL, &packet) == SUCCESS)
+               if (response->generate(response, NULL, &packet) == SUCCESS)
                {
                        charon->sender->send(charon->sender, packet);
                        response->destroy(response);
@@ -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;
 }