ike: Publish getter for the current message ID on IKE_SA
This commit is contained in:
@@ -554,7 +554,7 @@ struct ike_sa_t {
|
||||
void (*set_proposal)(ike_sa_t *this, proposal_t *proposal);
|
||||
|
||||
/**
|
||||
* Set the message id of the IKE_SA.
|
||||
* Set the message ID of the IKE_SA.
|
||||
*
|
||||
* The IKE_SA stores two message IDs, one for initiating exchanges (send)
|
||||
* and one to respond to exchanges (expect).
|
||||
@@ -564,6 +564,17 @@ struct ike_sa_t {
|
||||
*/
|
||||
void (*set_message_id)(ike_sa_t *this, bool initiate, uint32_t mid);
|
||||
|
||||
/**
|
||||
* Get the message ID of the IKE_SA.
|
||||
*
|
||||
* The IKE_SA stores two message IDs, one for initiating exchanges (send)
|
||||
* and one to respond to exchanges (expect).
|
||||
*
|
||||
* @param initiate TRUE to get message ID for initiating
|
||||
* @return current message
|
||||
*/
|
||||
uint32_t (*get_message_id)(ike_sa_t *this, bool initiate);
|
||||
|
||||
/**
|
||||
* Add an additional address for the peer.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user