Raise an alert if kernel policy installation fails
This commit is contained in:
@@ -116,6 +116,8 @@ enum alert_t {
|
|||||||
ALERT_TS_MISMATCH,
|
ALERT_TS_MISMATCH,
|
||||||
/** Installation of IPsec SAs failed, argument is child_sa_t */
|
/** Installation of IPsec SAs failed, argument is child_sa_t */
|
||||||
ALERT_INSTALL_CHILD_SA_FAILED,
|
ALERT_INSTALL_CHILD_SA_FAILED,
|
||||||
|
/** Installation of IPsec Policy failed, argument is child_sa_t */
|
||||||
|
ALERT_INSTALL_CHILD_POLICY_FAILED,
|
||||||
/** IKE_SA deleted because of "replace" unique policy, no argument */
|
/** IKE_SA deleted because of "replace" unique policy, no argument */
|
||||||
ALERT_UNIQUE_REPLACE,
|
ALERT_UNIQUE_REPLACE,
|
||||||
/** IKE_SA deleted because of "keep" unique policy, no arguement */
|
/** IKE_SA deleted because of "keep" unique policy, no arguement */
|
||||||
|
|||||||
@@ -586,6 +586,8 @@ static status_t select_and_install(private_child_create_t *this,
|
|||||||
if (status != SUCCESS)
|
if (status != SUCCESS)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "unable to install IPsec policies (SPD) in kernel");
|
DBG1(DBG_IKE, "unable to install IPsec policies (SPD) in kernel");
|
||||||
|
charon->bus->alert(charon->bus, ALERT_INSTALL_CHILD_POLICY_FAILED,
|
||||||
|
this->child_sa);
|
||||||
return NOT_FOUND;
|
return NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user