raise an alert() if the RADIUS server is not responding

This commit is contained in:
Martin Willi 2009-07-15 16:13:51 +02:00 committed by Tobias Brunner
parent e85b83c737
commit 88957f54f2
2 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,8 @@ enum level_t {
* Kind of alerts to raise.
*/
enum alert_t {
/* a RADIUS server did not respond, no additional arguments */
ALERT_RADIUS_NOT_RESPONDING,
};
/**

View File

@ -353,6 +353,7 @@ static radius_message_t* request(private_radius_client_t *this,
}
DBG1(DBG_CFG, "RADIUS server is not responding");
put_socket(socket);
charon->bus->alert(charon->bus, ALERT_RADIUS_NOT_RESPONDING);
return NULL;
}