aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/vici/vici_query.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-05-29 18:38:28 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-17 11:12:12 +0200
commit085b8f4fb0bc68af864c3bdf444fd4d72c90050c (patch)
treec2c2402d1b6c2e6ba3577c18a1f9816c17f11563 /src/libcharon/plugins/vici/vici_query.c
parentcdd7d2b197ba0a7e260e6937f907df599f20b474 (diff)
downloadstrongswan-085b8f4fb0bc68af864c3bdf444fd4d72c90050c.tar.bz2
strongswan-085b8f4fb0bc68af864c3bdf444fd4d72c90050c.tar.xz
vici: Explicitly notify listeners of the type of ike/child-updown event
Diffstat (limited to 'src/libcharon/plugins/vici/vici_query.c')
-rw-r--r--src/libcharon/plugins/vici/vici_query.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libcharon/plugins/vici/vici_query.c b/src/libcharon/plugins/vici/vici_query.c
index d94d760b9..4f040f9fe 100644
--- a/src/libcharon/plugins/vici/vici_query.c
+++ b/src/libcharon/plugins/vici/vici_query.c
@@ -1054,6 +1054,12 @@ METHOD(listener_t, ike_updown, bool,
now = time_monotonic(NULL);
b = vici_builder_create();
+
+ if (up)
+ {
+ b->add_kv(b, "up", "yes");
+ }
+
b->begin_section(b, ike_sa->get_name(ike_sa));
list_ike(this, b, ike_sa, now);
b->begin_section(b, "child-sas");
@@ -1080,6 +1086,11 @@ METHOD(listener_t, child_updown, bool,
now = time_monotonic(NULL);
b = vici_builder_create();
+ if (up)
+ {
+ b->add_kv(b, "up", "yes");
+ }
+
b->begin_section(b, ike_sa->get_name(ike_sa));
list_ike(this, b, ike_sa, now);
b->begin_section(b, "child-sas");