ike-mobike: Add method to enable path probing

This commit is contained in:
Tobias Brunner 2014-07-28 12:24:33 +02:00
parent c5a5bc85d9
commit 2180ace937
2 changed files with 12 additions and 0 deletions

View File

@ -630,6 +630,12 @@ METHOD(ike_mobike_t, is_probing, bool,
return this->check;
}
METHOD(ike_mobike_t, enable_probing, void,
private_ike_mobike_t *this)
{
this->check = TRUE;
}
METHOD(task_t, get_type, task_type_t,
private_ike_mobike_t *this)
{
@ -687,6 +693,7 @@ ike_mobike_t *ike_mobike_create(ike_sa_t *ike_sa, bool initiator)
.dpd = _dpd,
.transmit = _transmit,
.is_probing = _is_probing,
.enable_probing = _enable_probing,
},
.ike_sa = ike_sa,
.initiator = initiator,

View File

@ -79,6 +79,11 @@ struct ike_mobike_t {
* @return TRUE if task is probing
*/
bool (*is_probing)(ike_mobike_t *this);
/**
* Enable probing for routability.
*/
void (*enable_probing)(ike_mobike_t *this);
};
/**