]> git.ipfire.org Git - people/ms/strongswan.git/commit
kernel-netlink: Copy current usage stats to new SA in update_sa()
authorTobias Brunner <tobias@strongswan.org>
Mon, 23 Mar 2015 17:37:48 +0000 (18:37 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 25 Mar 2015 11:00:20 +0000 (12:00 +0100)
commita3c2edb19c7e557b5116692cf44ce925569b95f0
tree8cea8cde32c687352b1d3b664c3a0b9ce20e725d
parent70728eb1b6005fe6e400e5df3534ed7087acc380
kernel-netlink: Copy current usage stats to new SA in update_sa()

This is needed to fix usage stats sent via RADIUS Accounting if clients
use MOBIKE or e.g. the kernel notifies us about a changed NAT mapping.
The upper layers won't expect the stats to get reset if only the IPs have
changed (and some kernel interface might actually allow such updates
without reset).

It also fixes traffic based lifetimes in such situations.

Fixes #799.
src/libhydra/plugins/kernel_netlink/kernel_netlink_ipsec.c