Added a statusallnb stroke command to show status non-blocking

This commit is contained in:
Martin Willi
2011-05-16 15:24:14 +02:00
parent a2302d2322
commit a694b481ee
7 changed files with 30 additions and 8 deletions
+3 -2
View File
@@ -389,7 +389,8 @@ static void log_auth_cfgs(FILE *out, peer_cfg_t *peer_cfg, bool local)
}
METHOD(stroke_list_t, status, void,
private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bool all)
private_stroke_list_t *this, stroke_msg_t *msg, FILE *out,
bool all, bool wait)
{
enumerator_t *enumerator, *children;
ike_cfg_t *ike_cfg;
@@ -531,7 +532,7 @@ METHOD(stroke_list_t, status, void,
fprintf(out, "Security Associations:\n");
enumerator = charon->controller->create_ike_sa_enumerator(
charon->controller, TRUE);
charon->controller, wait);
while (enumerator->enumerate(enumerator, &ike_sa))
{
bool ike_printed = FALSE;