aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-16 12:31:28 +0000
committerMartin Willi <martin@strongswan.org>2005-11-16 12:31:28 +0000
commit5dee5e68c59e6af8e09b08a9000df34b1a253c09 (patch)
tree9f5e004ac37a0a8869a0ffe75cb2577d2c9929d1 /Source/charon
parentfe684f2a5e46bd145b080b995a3dcdae19962d5c (diff)
downloadstrongswan-5dee5e68c59e6af8e09b08a9000df34b1a253c09.tar.bz2
strongswan-5dee5e68c59e6af8e09b08a9000df34b1a253c09.tar.xz
- added mappings
Diffstat (limited to 'Source/charon')
-rw-r--r--Source/charon/job.c7
-rw-r--r--Source/charon/job.h6
2 files changed, 11 insertions, 2 deletions
diff --git a/Source/charon/job.c b/Source/charon/job.c
index 9740de3c6..42f4c620c 100644
--- a/Source/charon/job.c
+++ b/Source/charon/job.c
@@ -26,6 +26,13 @@
#include "utils/allocator.h"
+mapping_t job_type_m[] = {
+ {INCOMING_PACKET, "INCOMING_PACKET"},
+ {RETRANSMIT_REQUEST, "RETRANSMIT_REQUEST"},
+ {INITIATE_IKE_SA, "INITIATE_IKE_SA"},
+ {MAPPING_END, NULL}
+};
+
/**
* @brief implements function destroy of job_t
*/
diff --git a/Source/charon/job.h b/Source/charon/job.h
index 6063b44ea..a2c83001c 100644
--- a/Source/charon/job.h
+++ b/Source/charon/job.h
@@ -24,13 +24,14 @@
#define JOB_H_
#include "types.h"
+#include "definitions.h"
/**
* Type of Jobs in Job-Queue
*/
typedef enum job_type_e job_type_t;
-enum job_type_e{
+enum job_type_e {
/**
* process an incoming IKEv2-Message
*/
@@ -42,10 +43,11 @@ enum job_type_e{
/**
* establish an ike sa as initiator
*/
- ESTABLISH_IKE_SA
+ INITIATE_IKE_SA
/* more job types have to be inserted here */
};
+extern mapping_t job_type_m[];
/**
* @brief Job as it is stored in the job queue