]>
Commit | Line | Data |
---|---|---|
5534ee84 | 1 | /* |
c60c7694 | 2 | * Copyright (C) 2005-2007 Martin Willi |
c71d53ba | 3 | * Copyright (C) 2005 Jan Hutter |
5534ee84 JH |
4 | * Hochschule fuer Technik Rapperswil |
5 | * | |
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>. | |
10 | * | |
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 | |
14 | * for more details. | |
552cc11b MW |
15 | */ |
16 | ||
17 | /** | |
18 | * @defgroup retransmit_job retransmit_job | |
19 | * @{ @ingroup jobs | |
5534ee84 JH |
20 | */ |
21 | ||
c60c7694 MW |
22 | #ifndef RETRANSMIT_JOB_H_ |
23 | #define RETRANSMIT_JOB_H_ | |
5534ee84 | 24 | |
c60c7694 | 25 | typedef struct retransmit_job_t retransmit_job_t; |
382b4817 | 26 | |
db7ef624 | 27 | #include <library.h> |
e0fe7651 | 28 | #include <processing/jobs/job.h> |
5534ee84 JH |
29 | #include <sa/ike_sa_id.h> |
30 | ||
5534ee84 | 31 | /** |
552cc11b | 32 | * Class representing an retransmit Job. |
382b4817 | 33 | * |
a6cbf648 MW |
34 | * This job is scheduled every time a request is sent over the |
35 | * wire. If the response to the request is not received at schedule | |
36 | * time, the retransmission will be initiated. | |
5534ee84 | 37 | */ |
c60c7694 | 38 | struct retransmit_job_t { |
5534ee84 JH |
39 | /** |
40 | * The job_t interface. | |
41 | */ | |
42 | job_t job_interface; | |
5534ee84 JH |
43 | }; |
44 | ||
45 | /** | |
552cc11b | 46 | * Creates a job of type retransmit. |
7daf5226 | 47 | * |
5534ee84 | 48 | * @param message_id message_id of the request to resend |
c60c7694 MW |
49 | * @param ike_sa_id identification of the ike_sa as ike_sa_id_t |
50 | * @return retransmit_job_t object | |
5534ee84 | 51 | */ |
c60c7694 MW |
52 | retransmit_job_t *retransmit_job_create(u_int32_t message_id, |
53 | ike_sa_id_t *ike_sa_id); | |
5534ee84 | 54 | |
1490ff4d | 55 | #endif /** RETRANSMIT_JOB_H_ @}*/ |