aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-03-03 10:30:59 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-03-03 10:30:59 +0000
commit77e7eede367e37ea1bbdca8b02393fc475bdd2c0 (patch)
tree31c10285f0eabed112d664ec235558089c11b293 /src
parentb654daf561ee1eb6075726a8a82c2864689f06fe (diff)
downloadstrongswan-77e7eede367e37ea1bbdca8b02393fc475bdd2c0.tar.bz2
strongswan-77e7eede367e37ea1bbdca8b02393fc475bdd2c0.tar.xz
ipsec statusall <conn> also filters address pools
Diffstat (limited to 'src')
-rw-r--r--src/charon/plugins/stroke/stroke_list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c
index 8042875c9..99fe8c468 100644
--- a/src/charon/plugins/stroke/stroke_list.c
+++ b/src/charon/plugins/stroke/stroke_list.c
@@ -290,6 +290,10 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo
enumerator = this->attribute->create_pool_enumerator(this->attribute);
while (enumerator->enumerate(enumerator, &pool, &size, &online, &offline))
{
+ if (name && !streq(name, pool))
+ {
+ continue;
+ }
if (first)
{
first = FALSE;