- added mappings
This commit is contained in:
@@ -26,6 +26,13 @@
|
|||||||
|
|
||||||
#include "utils/allocator.h"
|
#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
|
* @brief implements function destroy of job_t
|
||||||
*/
|
*/
|
||||||
|
|||||||
+3
-1
@@ -24,6 +24,7 @@
|
|||||||
#define JOB_H_
|
#define JOB_H_
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
#include "definitions.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type of Jobs in Job-Queue
|
* Type of Jobs in Job-Queue
|
||||||
@@ -42,10 +43,11 @@ enum job_type_e{
|
|||||||
/**
|
/**
|
||||||
* establish an ike sa as initiator
|
* establish an ike sa as initiator
|
||||||
*/
|
*/
|
||||||
ESTABLISH_IKE_SA
|
INITIATE_IKE_SA
|
||||||
/* more job types have to be inserted here */
|
/* more job types have to be inserted here */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern mapping_t job_type_m[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Job as it is stored in the job queue
|
* @brief Job as it is stored in the job queue
|
||||||
|
|||||||
Reference in New Issue
Block a user