*/
u_int32_t length;
};
-
+
+/**
+ * mappings used to get strings for exchange_type_t
+ */
+mapping_t exchange_type_m[] = {
+ {EXCHANGE_TYPE_UNDEFINED, "EXCHANGE_TYPE_UNDEFINED"},
+ {IKE_SA_INIT, "IKE_SA_INIT"},
+ {IKE_AUTH, "IKE_AUTH"},
+ {CREATE_CHILD_SA, "CREATE_CHILD_SA"},
+ {INFORMATIONAL, "INFORMATIONAL"}
+};
/**
this->next_payload = 0;
this->maj_version = IKE_MAJOR_VERSION;
this->min_version = IKE_MINOR_VERSION;
- this->exchange_type = NOT_SET;
+ this->exchange_type = EXCHANGE_TYPE_UNDEFINED;
this->flags.initiator = TRUE;
this->flags.version = HIGHER_VERSION_SUPPORTED_FLAG;
this->flags.response = FALSE;
enum exchange_type_e{
/**
- * NOT_SET, not a official message type :-)
+ * EXCHANGE_TYPE_UNDEFINED, not a official message type :-)
*/
- NOT_SET = 0,
-
+ EXCHANGE_TYPE_UNDEFINED = 240,
/**
* IKE_SA_INIT
*/
INFORMATIONAL = 37
};
+extern mapping_t exchange_type_m[];
+
/**
* Object representing an IKEv2-Header
*