charon-nm: Set DPD/close action to restart and enable indefinite keying tries
[strongswan.git] / src / libcharon / processing / jobs / acquire_job.h
1 /*
2 * Copyright (C) 2006 Martin Willi
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup acquire_job acquire_job
18 * @{ @ingroup cjobs
19 */
20
21 #ifndef ACQUIRE_JOB_H_
22 #define ACQUIRE_JOB_H_
23
24 typedef struct acquire_job_t acquire_job_t;
25
26 #include <library.h>
27 #include <selectors/traffic_selector.h>
28 #include <processing/jobs/job.h>
29
30 /**
31 * Class representing an ACQUIRE Job.
32 *
33 * This job initiates a CHILD SA on kernel request.
34 */
35 struct acquire_job_t {
36 /**
37 * The job_t interface.
38 */
39 job_t job_interface;
40 };
41
42 /**
43 * Creates a job of type ACQUIRE.
44 *
45 * @param reqid reqid of the trapped CHILD_SA to acquire
46 * @param src_ts source traffic selector
47 * @param dst_ts destination traffic selector
48 * @return acquire_job_t object
49 */
50 acquire_job_t *acquire_job_create(uint32_t reqid,
51 traffic_selector_t *src_ts,
52 traffic_selector_t *dst_ts);
53
54 #endif /** REKEY_CHILD_SA_JOB_H_ @}*/