summaryrefslogtreecommitdiff
path: root/src/libcharon/processing/jobs/process_message_job.c
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2015-10-22 11:43:58 +0200
committerYves-Alexis Perez <corsac@debian.org>2015-10-22 11:43:58 +0200
commit5dca9ea0e2931f0e2a056c7964d311bcc30a01b8 (patch)
tree037f1ec5bb860846938ddcf29771c24e9c529be0 /src/libcharon/processing/jobs/process_message_job.c
parentb238cf34df3fe4476ae6b7012e7cb3e9769d4d51 (diff)
downloadvyos-strongswan-5dca9ea0e2931f0e2a056c7964d311bcc30a01b8.tar.gz
vyos-strongswan-5dca9ea0e2931f0e2a056c7964d311bcc30a01b8.zip
Imported Upstream version 5.3.3
Diffstat (limited to 'src/libcharon/processing/jobs/process_message_job.c')
-rw-r--r--src/libcharon/processing/jobs/process_message_job.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libcharon/processing/jobs/process_message_job.c b/src/libcharon/processing/jobs/process_message_job.c
index a6795e766..31f048db6 100644
--- a/src/libcharon/processing/jobs/process_message_job.c
+++ b/src/libcharon/processing/jobs/process_message_job.c
@@ -91,16 +91,26 @@ METHOD(job_t, get_priority, job_priority_t,
{
case IKE_AUTH:
/* IKE auth is rather expensive and often blocking, low priority */
+ case AGGRESSIVE:
+ case ID_PROT:
+ /* AM is basically IKE_SA_INIT/IKE_AUTH combined (without EAP/XAuth)
+ * MM is similar, but stretched out more */
return JOB_PRIO_LOW;
case INFORMATIONAL:
+ case INFORMATIONAL_V1:
/* INFORMATIONALs are inexpensive, for DPD we should have low
* reaction times */
return JOB_PRIO_HIGH;
case IKE_SA_INIT:
- case CREATE_CHILD_SA:
- default:
/* IKE_SA_INIT is expensive, but we will drop them in the receiver
* if we are overloaded */
+ case CREATE_CHILD_SA:
+ case QUICK_MODE:
+ /* these may require DH, but if not they are relatively cheap */
+ case TRANSACTION:
+ /* these are mostly cheap, however, if XAuth via RADIUS is used
+ * they may block */
+ default:
return JOB_PRIO_MEDIUM;
}
}