Add enum names for HA message types

This commit is contained in:
Martin Willi
2010-07-26 11:33:00 +02:00
parent 51217527e6
commit f2eebed2a3
2 changed files with 19 additions and 0 deletions
+14
View File
@@ -46,6 +46,20 @@ struct private_ha_message_t {
chunk_t buf; chunk_t buf;
}; };
ENUM(ha_message_type_names, HA_IKE_ADD, HA_RESYNC,
"IKE_ADD",
"IKE_UPDATE",
"IKE_MID_INITIATOR",
"IKE_MID_RESPONDER",
"IKE_DELETE",
"CHILD_ADD",
"CHILD_DELETE",
"SEGMENT_DROP",
"SEGMENT_TAKE",
"STATUS",
"RESYNC",
);
typedef struct ike_sa_id_encoding_t ike_sa_id_encoding_t; typedef struct ike_sa_id_encoding_t ike_sa_id_encoding_t;
/** /**
+5
View File
@@ -65,6 +65,11 @@ enum ha_message_type_t {
HA_RESYNC, HA_RESYNC,
}; };
/**
* Enum names for message types
*/
extern enum_name_t *ha_message_type_names;
/** /**
* Type of attributes contained in a message * Type of attributes contained in a message
*/ */