4 * @brief Interface of send_dpd_job_t.
8 * Copyright (C) 2006 Tobias Brunner, Daniel Roethlisberger
9 * Hochschule fuer Technik Rapperswil
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 #ifndef SEND_DPD_JOB_H_
23 #define SEND_DPD_JOB_H_
25 typedef struct send_dpd_job_t send_dpd_job_t
;
28 #include <queues/jobs/job.h>
29 #include <config/connections/connection.h>
30 #include <sa/ike_sa_id.h>
33 * @brief Class representing a SEND_DPD Job.
35 * Job to periodically send a Dead Peer Detection (DPD) request,
36 * ie. an IKE request with no payloads other than the encrypted payload
37 * required by the syntax.
40 * - send_dpd_job_create()
44 struct send_dpd_job_t
{
46 * implements job_t interface
51 * @brief Destroys an send_dpd_job_t object.
53 * @param this send_dpd_job_t object to destroy
55 void (*destroy
) (send_dpd_job_t
*this);
59 * @brief Creates a job of type SEND_DPD.
61 * @param ike_sa_id identification of the ike_sa as ike_sa_id_t object (gets cloned)
62 * @return initiate_ike_sa_job_t object
66 send_dpd_job_t
*send_dpd_job_create(ike_sa_id_t
*ike_sa_id
);
68 #endif /*SEND_DPD_JOB_H_*/