strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a32a8d4
)
Add stroke CHILD_SA rekeying counter
author
Martin Willi
<martin@revosec.ch>
Mon, 8 Oct 2012 09:32:44 +0000
(11:32 +0200)
committer
Martin Willi
<martin@revosec.ch>
Wed, 24 Oct 2012 09:34:30 +0000
(11:34 +0200)
src/libcharon/plugins/stroke/stroke_counter.c
patch
|
blob
|
history
diff --git
a/src/libcharon/plugins/stroke/stroke_counter.c
b/src/libcharon/plugins/stroke/stroke_counter.c
index
b46ca0d
..
ab2882e
100644
(file)
--- a/
src/libcharon/plugins/stroke/stroke_counter.c
+++ b/
src/libcharon/plugins/stroke/stroke_counter.c
@@
-88,6
+88,17
@@
METHOD(listener_t, ike_rekey, bool,
return TRUE;
}
+METHOD(listener_t, child_rekey, bool,
+ private_stroke_counter_t *this, ike_sa_t *ike_sa,
+ child_sa_t *old, child_sa_t *new)
+{
+ this->lock->lock(this->lock);
+ this->counter[COUNTER_CHILD_SA_REKEY]++;
+ this->lock->unlock(this->lock);
+
+ return TRUE;
+}
+
METHOD(stroke_counter_t, destroy, void,
private_stroke_counter_t *this)
{
@@
-106,6
+117,7
@@
stroke_counter_t *stroke_counter_create()
.public = {
.listener = {
.ike_rekey = _ike_rekey,
+ .child_rekey = _child_rekey,
},
.destroy = _destroy,
},