aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-07-06 11:50:43 +0200
committerTobias Brunner <tobias@strongswan.org>2010-09-02 19:01:23 +0200
commit81f6ec276b1322d79428e6195c03065259482a50 (patch)
treeb5cb627a457329290bebf6e7e5e056cfa5b8cd36 /src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c
parent09ae31f13a65e4946d5e71ffd635af62b1695e1c (diff)
downloadstrongswan-81f6ec276b1322d79428e6195c03065259482a50.tar.bz2
strongswan-81f6ec276b1322d79428e6195c03065259482a50.tar.xz
Moved acquire job creation to kernel event handler.
Diffstat (limited to 'src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c')
-rw-r--r--src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c b/src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c
index 81e46dad3..d21da6f9e 100644
--- a/src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c
+++ b/src/libcharon/plugins/kernel_klips/kernel_klips_ipsec.c
@@ -33,7 +33,6 @@
#include <threading/thread.h>
#include <threading/mutex.h>
#include <processing/jobs/callback_job.h>
-#include <processing/jobs/acquire_job.h>
#include <processing/jobs/rekey_child_sa_job.h>
#include <processing/jobs/delete_child_sa_job.h>
#include <processing/jobs/update_sa_job.h>
@@ -1237,7 +1236,6 @@ static void process_acquire(private_kernel_klips_ipsec_t *this, struct sadb_msg*
u_int32_t reqid;
u_int8_t proto;
policy_entry_t *policy;
- job_t *job;
switch (msg->sadb_msg_satype)
{
@@ -1298,10 +1296,8 @@ static void process_acquire(private_kernel_klips_ipsec_t *this, struct sadb_msg*
this->mutex->unlock(this->mutex);
- DBG2(DBG_KNL, "received an SADB_ACQUIRE");
- DBG1(DBG_KNL, "creating acquire job for CHILD_SA with reqid {%d}", reqid);
- job = (job_t*)acquire_job_create(reqid, NULL, NULL);
- hydra->processor->queue_job(hydra->processor, job);
+ charon->kernel_interface->acquire(charon->kernel_interface, reqid, NULL,
+ NULL);
}
/**