aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/processing/jobs/initiate_mediation_job.c
Commit message (Collapse)AuthorAgeFilesLines
* peer-cfg: Store mediated_by as name and not peer-cfg referenceTobias Brunner2017-02-161-2/+19
| | | | | | | | | This way updates to the mediation config are respected and the order in which configs are configured/loaded does not matter. The SQL plugin currently maintains the strong relationship between mediated and mediation connection (we could theoretically change that to a string too).
* mediation: Reschedule initiate mediation job if SA is not yet foundTobias Brunner2015-11-091-0/+4
| | | | | | | | | If the job gets queued for a newly created IKE_SA it might not yet be checked in when the job is running, reschedule the job in that case. This should fix the two p2pnat test scenarios, which occasionally failed because one of the peers did not initiate the connection to the mediation server.
* controller: Optionally adhere to init limits also when initiating IKE_SAsTobias Brunner2015-08-211-2/+2
|
* Give processor_t more control over the lifecycle of a jobTobias Brunner2012-06-251-14/+9
| | | | | | | | | | | Jobs are now destroyed by the processor, but they are allowed to reschedule themselves. That is, parts of the reschedule functionality already provided by callback_job_t is moved to the processor. Not yet fully supported is JOB_REQUEUE_DIRECT and canceling jobs. Note: job_t.destroy() is now called not only for queued jobs but also after execution or cancellation of jobs. job_t.status can be used to decide what to do in said method.
* Loggers specify what log messages they want to receive during registration.Tobias Brunner2012-05-021-1/+1
| | | | | | | This also allows us to generate the log message only once for all loggers that need it (avoids calls to custom printf specifier callbacks). To update the log levels loggers can simply be registered again.
* Migrated initiate_mediation_job_t to INIT/METHOD macros.Tobias Brunner2011-10-031-30/+19
|
* bus->listen() and the controller wrappers accept a timeout to wait for callbacksMartin Willi2011-08-261-1/+1
|
* Introduce priority classes for jobsMartin Willi2011-05-161-0/+9
|
* Moving charon to libcharon.Tobias Brunner2010-03-191-0/+271