2 * Copyright (C) 2015 Tobias Brunner
4 * Copyright (C) secunet Security Networks AG
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup redirect_job redirect_job
22 #ifndef REDIRECT_JOB_H_
23 #define REDIRECT_JOB_H_
25 typedef struct redirect_job_t redirect_job_t
;
28 #include <sa/ike_sa_id.h>
29 #include <processing/jobs/job.h>
32 * Job used to redirect an IKE_SA.
34 struct redirect_job_t
{
37 * The job_t interface.
43 * Creates a job to redirect an IKE_SA.
45 * @param ike_sa_id id of the IKE_SA to redirect (cloned)
46 * @param gateway gateway identity (IP or FQDN) of target (cloned)
47 * @return created redirect_job_t object
49 redirect_job_t
*redirect_job_create(ike_sa_id_t
*ike_sa_id
,
50 identification_t
*gateway
);
52 #endif /** REDIRECT_JOB_H_ @}*/