Add a "ipsec listcounters" command to stroke

This commit is contained in:
Martin Willi
2012-10-24 11:34:31 +02:00
parent f9332e0a8b
commit 0c4b9f7cda
7 changed files with 16 additions and 5 deletions
@@ -213,6 +213,8 @@ METHOD(stroke_counter_t, print, void,
}
this->lock->unlock(this->lock);
fprintf(out, "\nList of IKE counters:\n\n");
/* but do blocking write without the lock. */
for (i = 0; i < countof(this->counter); i++)
{