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 <processing/jobs/job.h>
29 #include <sa/ike_sa_id.h>
32 * @brief Class representing a SEND_DPD Job.
34 * Job to periodically send a Dead Peer Detection (DPD) request,
35 * ie. an IKE request with no payloads other than the encrypted payload
36 * required by the syntax.
39 * - send_dpd_job_create()
43 struct send_dpd_job_t
{
45 * implements job_t interface
50 * @brief Destroys an send_dpd_job_t object.
52 * @param this send_dpd_job_t object to destroy
54 void (*destroy
) (send_dpd_job_t
*this);
58 * @brief Creates a job of type SEND_DPD.
60 * @param ike_sa_id identification of the ike_sa as ike_sa_id_t object (gets cloned)
61 * @return initiate_ike_sa_job_t object
65 send_dpd_job_t
*send_dpd_job_create(ike_sa_id_t
*ike_sa_id
);
67 #endif /*SEND_DPD_JOB_H_*/