]> git.ipfire.org Git - thirdparty/strongswan.git/commit
eap-radius: Add cache for usage stats of expired/rekeyed SAs
authorTobias Brunner <tobias@strongswan.org>
Tue, 24 Mar 2015 16:38:49 +0000 (17:38 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 21 May 2015 13:38:25 +0000 (15:38 +0200)
commit7fbe79bce7a92c7ce5aac8eacdf418680e3ae198
tree88a0dd318a9a5423e6eda343e63a99ea7dedcfe1
parentd079f6a4f7c643abaa3e6b4d094b4395e56e2ec8
eap-radius: Add cache for usage stats of expired/rekeyed SAs

There are several situations that the previous code didn't handle that
well, for example, interim updates during rekeying (until the rekeyed SA
was deleted the numbers were too high, then suddenly dropped afterwards),
or rekeying for IKEv1 in general because rekeyed IPsec SAs stay installed
until they expire (so if they were still around when the IKE_SA was
terminated, the reported numbers in the Stop message were too high).

If intermediate updates are not used the cache entries for rekeyed
CHILD_SA will accumulate, we can't clean them up as we don't get
child_updown() events for them.
src/libcharon/plugins/eap_radius/eap_radius_accounting.c