raise an alert() if the RADIUS server is not responding
This commit is contained in:
committed by
Tobias Brunner
parent
e85b83c737
commit
88957f54f2
@@ -131,6 +131,8 @@ enum level_t {
|
|||||||
* Kind of alerts to raise.
|
* Kind of alerts to raise.
|
||||||
*/
|
*/
|
||||||
enum alert_t {
|
enum alert_t {
|
||||||
|
/* a RADIUS server did not respond, no additional arguments */
|
||||||
|
ALERT_RADIUS_NOT_RESPONDING,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -353,6 +353,7 @@ static radius_message_t* request(private_radius_client_t *this,
|
|||||||
}
|
}
|
||||||
DBG1(DBG_CFG, "RADIUS server is not responding");
|
DBG1(DBG_CFG, "RADIUS server is not responding");
|
||||||
put_socket(socket);
|
put_socket(socket);
|
||||||
|
charon->bus->alert(charon->bus, ALERT_RADIUS_NOT_RESPONDING);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user