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

This commit is contained in:
Martin Willi
2009-07-16 15:15:39 +02:00
committed by Tobias Brunner
parent e85b83c737
commit 88957f54f2
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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;
} }