summaryrefslogtreecommitdiff
path: root/cesar/cp2/msg/msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp2/msg/msg.h')
-rw-r--r--cesar/cp2/msg/msg.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/cesar/cp2/msg/msg.h b/cesar/cp2/msg/msg.h
index 4d1e6412a9..ed3f30965b 100644
--- a/cesar/cp2/msg/msg.h
+++ b/cesar/cp2/msg/msg.h
@@ -31,13 +31,21 @@
BEGIN_DECLS
/**
- * Initialise the msg module.
+ * Initialise the MSG module.
* \param ctx control plane context
*/
void
cp_msg_init (cp_t *ctx);
/**
+ * Uninitialise the MSG module.
+ * \param ctx control plane context
+ */
+void
+cp_msg_uninit (cp_t *ctx);
+
+
+/**
* Examine message type and post an event to the FSM.
* \param ctx control plane context
* \param mme received MME
@@ -54,6 +62,7 @@ cp_msg_dispatch (cp_t *ctx, cp_mme_rx_t *mme);
* Initialise a MME handle for a new message to be transmitted.
* \param ctx control plane context
* \param peer peer information
+ * \param mmtype the MME MMTYPE.
* \return the newly created message
*
* This function:
@@ -63,12 +72,13 @@ cp_msg_dispatch (cp_t *ctx, cp_mme_rx_t *mme);
* - writes the MME header.
*/
cp_mme_tx_t *
-cp_msg_mme_init (cp_t *ctx, cp_mme_peer_t *peer);
+cp_msg_mme_init (cp_t *ctx, cp_mme_peer_t *peer, uint mmtype);
/**
* Initialise a MME handle for a new encrypted message to be transmitted.
* \param ctx control plane context
* \param peer peer information
+ * \param mmtype the MME MMType.
* \param pid protocol identifier
* \param peks payload encryption key select
* \param prun protocol run information
@@ -79,6 +89,7 @@ cp_msg_mme_init (cp_t *ctx, cp_mme_peer_t *peer);
*/
cp_mme_tx_t *
cp_msg_mme_init_encrypted (cp_t *ctx, cp_mme_peer_t *peer,
+ uint mmtype,
cp_mme_peks_t peks,
const cp_secu_protocol_run_t *prun);
@@ -95,6 +106,7 @@ cp_msg_mme_send (cp_t *ctx, cp_mme_tx_t *mme);
/**
* Read the header of a received MME and return the MME context.
+ * \param ctx the module context.
* \param mme the MME received.
* \param length the MME length.
* \param tei the source TEI (0xFF if coming from the HLE).
@@ -102,7 +114,7 @@ cp_msg_mme_send (cp_t *ctx, cp_mme_tx_t *mme);
* \return cp_mme_rx_t object associated.
*/
cp_mme_rx_t *
-cp_msg_mme_read_header (u8 *mme, uint length, cp_tei_t tei,
+cp_msg_mme_read_header (cp_t *ctx, u8 *mme, uint length, cp_tei_t tei,
uint *fmi);
END_DECLS